[ $# -eq 0 ] && (echo Syntaxe: $0 NomUtilisateur; exit 1) grep "^$1:" /etc/passwd >/dev/null if [ $? -ne 0 ] ; then echo Utilisateur $1 inconnu; exit 1 else gid=`grep "^$1:" /etc/passwd | cut -d: -f4` groupe=`grep $gid /etc/group | cut -d: -f1` echo Utilisateur $1 appartient au groupe $groupe fi