VLSI Group > Infrastructure > Computing > User Accounts

User Accounts

Creating new NIS accounts (new group members)

 
  1. become root on vlsi
  2. cd to /var/yp
  3. run useradd.pl <username>
  4. follow the instructions. This process works much, much better when <username> is a valid Leland account.
  5. You will want to add the user to the mailing list.

Creating new account on specific machine (friends, others)

 
  1. become root on the machine where you want to add the account.
     
  2. if the new user is named "foobar". Add the following line to /etc/passwd:

    foobar:x:1001:15:The Great Foo Bar:/home/foobar:/bin/tcsh


  3. and add the following line to /etc/shadow:

    foobar::::::::


  4. and add the following line to /etc/auto_home:

    foobar local_machine:/local/home/foobar

    where "local_machine" is the name of the local machine (eg. chips, fiddle, chipmap, etc..)
     
  5. you now need to create the home directory. The easiest way is to say:

    mkdir -p /local/home/foobar

    then say:

    /bin/chown foobar:users /local/home/foobar

    This last command makes foobar the rightful owner of his home directory.


  6. lastly you have to give this new user a password. Say:

    /bin/passwd foobar

    since you're root, it won't ask you for the old password. Enter in the password you want. The new user can change their password by logging in with the old password and using the same /bin/passwd command, with no arguments to change it.

Changing NIS password

  If you need to change your passwd, use the following command from any Sun machine in our group:

/bin/passwd -r nis


Last updated Saturday, 17. May 2003