#!/bin/bash fichier_a_lire=./logins.csv while read line do user=$(echo $line | cut -d ";" -f1) useradd -m -s "/bin/bash" $user group=$(echo $line | cut -d ";" -f5) usermod -aG $group $user passwd=$(echo $line | cut -d ";" -f2) echo $user:$passwd | chpasswd chown $user:$user /home/$user done < $fichier_a_lire