[m-rev.] diff: NIS

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Mar 31 16:25:30 AEDT 2006


cvs diff: Diffing .
Index: nis
===================================================================
RCS file: /home/mercury/mercury1/repository/local/nis,v
retrieving revision 1.3
diff -u -b -r1.3 nis
--- nis	22 Nov 2005 06:40:46 -0000	1.3
+++ nis	31 Mar 2006 05:24:38 -0000
@@ -15,22 +15,42 @@
 slave is down at that time.  The cron job is in /etc/cron.d/nis.
 
 
+Adding a new user
+---------------------------
+
+The addition of a new user should be done on the NIS master server.
+It can be done in the following steps:
+
+1. Add the new user to the password file, using either the useradd or adduser
+   programs (using their options to specify the home directory, uid, group etc).
+   Note that if the user already has an account on the main departmental
+   machines, you should copy his or her uid from there.
+
+   The password file entries of new users should go below the '+::0:0:::' line
+   in /etc/passwd, to make them visible to NIS. The adduser and useradd
+   programs however put the new entry above this line, so you will usually
+   need to edit /etc/passwd (using vipw) after running adduser.
+
+2. Make the user know to NIS by cd'ing to /var/yp and running "make".
+
+3. Set the user's password, by running "passws <username>" as root.
+
+If you do step 3 before before step 2, the inconsistency between the set of
+users known to Unix and the set of users known to NIS will lead to errors.
+You can get similar errors if you delete someone from /etc/passwd while they
+are still in NIS.
+
 Changes to Mercury accounts
 ---------------------------
 
-All changes to the Mercury accounts, including changing the details of
-existing users and adding new users, should be done on the NIS master
-server.  After any such changes the NIS database will need to be updated
-for the changes to take effect.  You can do this with the following
-commands as root on the master server:
+All other changes to the Mercury accounts, including changing the details of
+existing users, should also be done on the NIS master server, and again
+the NIS database will need to be updated for the changes to take effect.
+Again, you can do this with the following commands as root on the master
+NIS server:
 
 	cd /var/yp
 	make
-
-Note that when adding a new user, their passwd entry should go below the
-'+::0:0:::' line.  The adduser program doesn't put the entry in this place,
-however, so you will usually need to edit /etc/passwd (using vipw) after
-running adduser.
 
 
 Setting up a new NIS client
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list