home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / docs / howto / addNewUser < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.7 KB  |  44 lines

  1.  
  2. How to add a new user (revised $Date: 91/01/03 22:06:42 $)
  3.  
  4. 0.  There is now a program called `adduser', located in 
  5.     /sprite/src/admin/adduser that automates most of this stuff.
  6.     This list will be kept around just in case someone has to
  7.     do it by hand.
  8.  
  9. 1.  Create the home directory.  The home directory should be
  10.     put in /user1 or /user2, and a symbolic link made from /users to that
  11.     directory.
  12.  
  13. 2.  Add the newuser to /etc/passwd.  The uid should come from the UCB
  14.     user database.  Get it from /etc/passwd on another machine, or if
  15.     the newuser doesn't have any other UCB accounts, login as root
  16.     on allspice and run:
  17.  
  18.     rsh thalm -l account =bin/mkpwent /users <lastname> <group>
  19.  
  20.     but use the real lastname and group.  This program will assign
  21.     a uid and automatically add it to the main database.  A prototype
  22.     passwd entry will be returned.
  23.  
  24. 3.  Copy /users/newuser to the new user's home directory.  (this is a
  25.     symlink so use "update /users/newuser/." or "cp -r".)
  26.  
  27. 4.  Add the new user to the sprite-users group in 
  28.     /sprite/lib/sendmail/aliases
  29.  
  30. 5.  If the new user recieves mail on another machine, create a
  31.     .forward file in his/her home directory.  Check /usr/lib/aliases
  32.     to make sure there isn't already a forwarding alias for the person
  33.     there.  If there is, then remove the alias from /usr/lib/aliases
  34.     (edit the source file in /sprite/lib/sendmail/aliases), and leave
  35.     the .forward file instead.
  36.  
  37. 6.  Create a .project file for the user's account to indicate what the
  38.     purpose of the account is.
  39.  
  40. 7.  Change the ownership on the directory and all files within
  41.     the directory so the new user owns his/her own files.  (chown -R).
  42.  
  43. 8.  Send mail so he/she knows the account is ready.
  44.