|
VLSI Group >
Infrastructure > Computing > User Accounts
User Accounts
Creating new NIS accounts (new group members)
| |
- become root on vlsi
- cd to /var/yp
- run
useradd.pl <username>
- follow the instructions. This process works much, much better when
<username> is a valid Leland account.
- You will want to add the user to the mailing list.
|
Creating new account on specific machine (friends, others)
| |
- become root on the machine where you want to add the
account.
- 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
- and add the following line to /etc/shadow:
foobar::::::::
- 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..)
- 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.
- 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 |
|
|