home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2830 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!laphroaig!cflatter
  3. From: cflatter@nrao.edu (Chris Flatters)
  4. Subject: Re: Adding users
  5. Message-ID: <1992Jul24.215139.26837@nrao.edu>
  6. Sender: news@nrao.edu
  7. Reply-To: cflatter@nrao.edu
  8. Organization: NRAO
  9. References: <9207241849.AA06522@nms1.abb.com>
  10. Date: Fri, 24 Jul 1992 21:51:39 GMT
  11. Lines: 30
  12.  
  13. In article AA06522@nms1.abb.com, MLUCI@fuel.abb.com (Mark Lucia 2915) writes:
  14. >       I tried the following:
  15. >           1. looking for a 'adduser' etc program/script
  16. >       
  17. >           2. makeing an entry in the /etc/passwd file
  18. >              makeing am entry in the /etc/master.passwd file
  19. >           adding the home directory in /usr
  20. >       
  21. >           3. rebooting the machine after 2
  22.  
  23. The correct procedure is:
  24.  
  25.     1 - Run the vipw(8) command.  This will allow you to edit the password
  26.             file and will automatically rebuild the master.passwd file when
  27.             you exit.  It may also do some other magic (I haven't looked at
  28.             it too closely yet).  
  29.  
  30.     2 - (Optional) If you want the new user to be able to use the su 
  31.             command add his user name to the wheel group in /etc/group.
  32.  
  33.         3 - Create a home directory for the new user.  This should match
  34.             the one given in /etc/passwd.  It appears to be conventional
  35.             to use /usr/<username> in 386BSD.  Change its ownership to
  36.         and group using chown(8) and chgrp(8).  Unless you specified
  37.             otherwise in /etc/passwd the new user's group will be staff
  38.         (gid = 20).
  39.  
  40.  
  41.     Chris Flatters
  42.     cflatter@nrao.edu
  43.