Date: Wed, 19 Nov 1997 09:37:35 -0800 From: Michael Peer <mpeer@ponyexpress.gwc.cccd.edu> To: Khetan Gajjar <khetan@iafrica.com>, isp@FreeBSD.ORG Subject: Re: Adding 700+ users with one or two commands Message-ID: <3.0.1.32.19971119093735.00aa3100@rustler.gwc.cccd.edu> In-Reply-To: <Pine.BSF.3.96.971119172813.20578O-100000@chain>
next in thread | previous in thread | raw e-mail | index | archive | help
I took the data, and wrote a perl script to write out the command line for adduser script, I put the -batch parameter first, worked great. Make sure and specify the real path to the users home directory,otherwise rmuser will not get rid of their home directory. I add about 2000 users every 18 weeks. We will soon add 14,000 users every 18 weeks. At 05:30 PM 11/19/97 +0200, Khetan Gajjar wrote: >Hi. > >I've got a list of usernames, in the format that adduser wants them >in a file. > >username groupname '' 'Full Name' password > >I've tried a command like >cat file | xargs -n5 adduser -group groupname -shell nologin -batch, >but this doesn't work quite nicely. Does anybody have a better >solution for me ? > >I need users created, and their usernames appended to the group, and >a home directory created. > >Any ideas ? > >TIA. >--- >Khetan Gajjar - whois kg1779 | khetan@iafrica.com or khetan@os.org.za >http://chain.iafrica.com/~khetan | PGPKey : finger khetan@chain.iafrica.com >UUNET Internet Africa Support | FreeBSD enthusiast-www2.za.freebsd.org >Unix is user friendly; it's just selective about who it calls a friend! > > ---------------------------------------------------------------------- Michael Peer Data Electronics Technician I Golden West College Computer Services Center 15744 Goldenwest St. Huntington Beach, CA 92647 e-mail: mpeer@gwc.cccd.edu Voice: (714)892-7711 ext 55067 WWW: http://pioneer.gwc.cccd.edu FAX: (714)895-8980
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19971119093735.00aa3100>