From ef6152e0802c595ac965521095a8e3c066c4d5fc Mon Sep 17 00:00:00 2001 From: "aboulai.bayo" Date: Mon, 24 Mar 2025 10:21:13 +0100 Subject: [PATCH] git push --- sisr1/tp04_scripts_admin/createUsers.sh | 1 + 1 file changed, 1 insertion(+) 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