This commit is contained in:
aboulai.bayo 2025-03-24 09:56:47 +01:00
parent 554c47126d
commit 925f840516

View File

@ -5,7 +5,7 @@ do
username=$(echo $ligne | cut -d ";" -f1) username=$(echo $ligne | cut -d ";" -f1)
useradd -m -s "/bin/bash" $username useradd -m -s "/bin/bash" $username
group=$(echo $ligne | -d ";" -f5) group=$(echo $ligne | cut -d ";" -f5)
usermod -aG $group $username usermod -aG $group $username
#le mot de passe de l'utilisateur #le mot de passe de l'utilisateur
echo $username:$passwd | chpasswd echo $username:$passwd | chpasswd