home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15423 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.3 KB

  1. 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
  2. From: wjm@feenix.metronet.com (Bill Middleton)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: creating accounts in the background
  5. Summary: adding user accounts
  6. Message-ID: <C1J3EJ.1yL@feenix.metronet.com>
  7. Date: 27 Jan 93 19:56:43 GMT
  8. References: <1993Jan26.214812.20323@utagraph.uta.edu>
  9. Organization: Tx Metronet Communications Services, Dallas Tx
  10. Lines: 43
  11.  
  12. In article <1993Jan26.214812.20323@utagraph.uta.edu> xxgsamek@utagraph.uta.edu (Gary Samek) writes:
  13. >Greetings,
  14. >
  15. >  We have a HP 720.  Being that this is a college environment and we create
  16. >and delete many student accounts every semester, I was wondering if anyone
  17. >knows of a nice utility that would allow for me to create a group of accounts
  18. >with a similar prefix appended by a counter for usernames and generate
  19. >random passwords for HP-UX.
  20.  
  21.   We use a perl script here to do this, the output from a dry run
  22. follows.  Its in /pub/perl/adminstuff.tar.Z for anon ftp.  Along with
  23. a number of other perl goodies.  See the listing file.
  24.  
  25.  
  26. # /admin/bin/adduser
  27.  
  28. adduser: must specify one user
  29.  
  30. usage:  adduser [-options ...] username
  31.  
  32. where options include:                                    Defaults -
  33.     -dir      dir             parent directory            least used disk
  34.     -full     "full name"     full name of new user       username
  35.     -group    group           group of new user           users
  36.     -password password        password of new user        username
  37.     -quota    quota           disk quota in kbytes        5000
  38.     -shell    login shell     login shell of new user     /bin/csh
  39.  
  40. All options can be abbreviated up to one letter.
  41.  
  42. Possible exit codes:
  43.            0 - normal, success           1 - password file is busy
  44.            2 - interrupted               3 - user already in passwd file
  45.            4 - bad group specified       5 - bad parent directory
  46.            6 - error getting new uid     7 - bad arguements (usage)
  47.            8 - error from remote system  9 - error creating user files
  48.           10 - error creating new passwd
  49.  
  50. -- 
  51. Bill Middleton - newsmeister
  52. Texas Metronet, Internet for the Individual.
  53. wjm@feenix.metronet.com, wjm@decster.uta.edu   
  54. data:9600+:214 705 2901, 2400:214 705 2917; login as info/info or signup/signup
  55.