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