Administering NIS users

Adding a new user to an NIS domain

Adding a new user to an NIS domain is similar to adding a new user to a standalone machine, but it requires a few extra steps.

Once the new user's machine has been added to the domain, and the user has been given a password on that machine, as outlined in ``Adding, copying and modifying user accounts'', the first step in adding the new user to the NIS domain is to update the passwd(4) (and shadow(4)) file that will become input to the NIS password maps on the master server.

The following example shows an initial entry in the NIS master server's passwd input file:

   kathy:x:1953:10:process team:/home/dancer/kathy:/usr/bin/ksh
Note that the fields in the NIS password maps are identical to the local passwd file. You should also make sure that the user ID you assign to this user is unique within the NIS domain. Failure to keep IDs unique may prevent files from being moved between directories because the system will respond as if the directories are owned by two different users. Also, file ownership may become confused when an NFS server exports a directory to an NFS client whose password file contains users with user IDs that match those of different users on the NFS server.

The next step in adding the new user to the NIS domain is to update the passwd(4) (and shadow(4)) file on the client machine, as described in the following sections.


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999