This commit is contained in:
aboulai.bayo 2025-03-24 10:21:13 +01:00
parent 925f840516
commit ef6152e080

View File

@ -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