diff --git a/sisr1/tp04_scripts_admin/createUsers.sh b/sisr1/tp04_scripts_admin/createUsers.sh index 044adfb..32558db 100644 --- a/sisr1/tp04_scripts_admin/createUsers.sh +++ b/sisr1/tp04_scripts_admin/createUsers.sh @@ -5,7 +5,7 @@ do username=$(echo $ligne | cut -d ";" -f1) useradd -m -s "/bin/bash" $username -group=$(echo $ligne | -d ";" -f5) +group=$(echo $ligne | cut -d ";" -f5) usermod -aG $group $username #le mot de passe de l'utilisateur echo $username:$passwd | chpasswd