NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5248
3. Issue the following command to change the user’s password:
passwd -r nisplus loginname
When the nispasswd command prompts you for a password, type the
same password you typed when you created the user’s DES
credential in step 2.
You can ignore the message that tells you what to do if the user’s
login password is different from the user’s secure RPC password. If
you followed the steps in this section, the user’s two passwords are
the same.
4. Issue the following command to make the user the owner of the
user’s passwd table entry:
nischown username.domainname
’[name=username],passwd.org_dir.domainname’
The following example changes the ownership of a passwd table
entry in the default domain:
nischown sara.Eng.Wiz.Com. ’[name=sara],passwd.org_dir’
5. Add the user to the primary group you specified when you added the
user to the passwd table.
a. Issue the following command to dump the current NIS+ group
table to a file:
nisaddent -d group > filename
b. Use a text editor to add the new user to the appropriate group in
filename.
c. Issue the following command to merge the contents of the
temporary file into the NIS+ group table:
nisaddent -m -f filename group
You must have modify permission for the group table to add a user to
a group.
6. Create the user’s home directory, and make the user the owner of it,
as in the following example:
mkdir /export/home/sara
chown sara /export/home/sara