[Klug-general] managing multiple users

Evan Ingram evan.ingram at cariss.co.uk
Fri Sep 24 09:28:58 UTC 2010


On Fri, 2010-09-24 at 10:18 +0100, Evan Ingram wrote:
> #!/bin/sh
> 
> for USER in 
> userA
> userB
> userC
> userD
> userE
> ; do
>   usermod -G USERS $USER
> done

alternative using gpasswd

gpasswd -M userA,userB,userC,... <GROUP>

but then i'd need the userlist in that format userA,userB,userC

:/




More information about the Kent mailing list