small fix

This commit is contained in:
teldra 2021-03-12 22:33:14 +01:00
parent ffa7874621
commit e0dc70ad69
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ for i in $(seq 1 "${users[amount]}"); do
if ! cut -d: -f1 /etc/passwd | grep -q -w "${users[name$i]}"; then
useradd -G audio,video,floppy,cdrom,optical,input,users "${users[desc$i]}" -m -s "${users[shell$i]}" -U "${users[name$i]}"
if [[ "${users[sudo$i]}" == "1" ]]; then
usermod -a -G socklog,wheel "${users[name[$i]}"
usermod -a -G socklog,wheel "${users[name$i]}"
passwd -dl root
fi