Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 1997 17:30:50 +0200 (SAT)
From:      Khetan Gajjar <khetan@chain.iafrica.com>
To:        isp@freebsd.org
Subject:   Adding 700+ users with one or two commands
Message-ID:  <Pine.BSF.3.96.971119172813.20578O-100000@chain>

next in thread | raw e-mail | index | archive | help
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!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971119172813.20578O-100000>