[Klug-general] managing multiple users

Evan Ingram evan.ingram at cariss.co.uk
Fri Sep 24 10:16:27 UTC 2010


On Fri, 2010-09-24 at 10:37 +0100, David Halliday wrote:
> One last link before I have to return to databases and load errors now
> that some processing has finished (and an error log for ant scripts).
> 
> 
> Someone is confused that the behaviour of cat is wrong (for him) but
> it might be that what he is getting is what you want:
> http://www.programmingforums.org/post39095.html

I've gone for a:

sudo cat /etc/passwd | grep '/home' | cut -d : -f 1 >> userlist

then:

sed -e :a -e '$!N;s/\n/,/;ta' -e 'P;D' userlist > userscsv

then I'm thiking I'll just copy and paste the userscsv into the gpasswd
-M command.




More information about the Kent mailing list