home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!sdd.hp.com!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!feenix.metronet.com!wjm
- From: wjm@feenix.metronet.com (Bill Middleton)
- Newsgroups: comp.sys.hp
- Subject: Re: creating accounts in the background
- Summary: adding user accounts
- Message-ID: <C1J3EJ.1yL@feenix.metronet.com>
- Date: 27 Jan 93 19:56:43 GMT
- References: <1993Jan26.214812.20323@utagraph.uta.edu>
- Organization: Tx Metronet Communications Services, Dallas Tx
- Lines: 43
-
- In article <1993Jan26.214812.20323@utagraph.uta.edu> xxgsamek@utagraph.uta.edu (Gary Samek) writes:
- >Greetings,
- >
- > We have a HP 720. Being that this is a college environment and we create
- >and delete many student accounts every semester, I was wondering if anyone
- >knows of a nice utility that would allow for me to create a group of accounts
- >with a similar prefix appended by a counter for usernames and generate
- >random passwords for HP-UX.
-
- We use a perl script here to do this, the output from a dry run
- follows. Its in /pub/perl/adminstuff.tar.Z for anon ftp. Along with
- a number of other perl goodies. See the listing file.
-
-
- # /admin/bin/adduser
-
- adduser: must specify one user
-
- usage: adduser [-options ...] username
-
- where options include: Defaults -
- -dir dir parent directory least used disk
- -full "full name" full name of new user username
- -group group group of new user users
- -password password password of new user username
- -quota quota disk quota in kbytes 5000
- -shell login shell login shell of new user /bin/csh
-
- All options can be abbreviated up to one letter.
-
- Possible exit codes:
- 0 - normal, success 1 - password file is busy
- 2 - interrupted 3 - user already in passwd file
- 4 - bad group specified 5 - bad parent directory
- 6 - error getting new uid 7 - bad arguements (usage)
- 8 - error from remote system 9 - error creating user files
- 10 - error creating new passwd
-
- --
- Bill Middleton - newsmeister
- Texas Metronet, Internet for the Individual.
- wjm@feenix.metronet.com, wjm@decster.uta.edu
- data:9600+:214 705 2901, 2400:214 705 2917; login as info/info or signup/signup
-