NFS Services Administrator's Guide

Configuring and Administering NIS+
Administering NIS+
Chapter 5 247
To Add a User to an NIS+ Domain
To add users to an NIS+ domain, follow this procedure, or use SAM
(System Administration Manager). To run SAM, type sam at the HP-UX
prompt.
1. Issue the following command, from any NIS+ client host, to add the
new user to the NIS+ passwd table:
nistbladm -a name=loginname passwd= uid=userID gid=groupID
\
gcos=user_info home=home_dir shell=shell shadow= \
passwd.org_dir.domainname
You must have create permission for the passwd table to use this
command.
If the domain is the default domain, you do not have to specify the
domain name, as in the following example:
nistbladm -a name=sara passwd= uid=7899 gid=20 \
gcos=”Sara Sena,,x77555,” home=/home/sara shell=/bin/ksh \
shadow= passwd.org_dir
2. Issue the following commands to add Local and DES credentials for
the new user to the cred table:
nisaddcred -p UID -P loginname.domainname local domainname
nisaddcred -p unix.UID@domainname -P loginname.domainname
des \
domainname
If you do not specify the domain name as the last argument, the
credentials are created in the default domain, as in the following
example:
nisaddcred -p 7899 -P sara.Eng.Wiz.Com. local
nisaddcred -p unix.7899@Eng.Wiz.Com -P sara.Eng.Wiz.Com.
des
The user ID must not belong to any other user in the passwd table.
The argument following the -P option is the user’s NIS+ principal
name and must end with a period.
When the nisaddcred command prompts you for a password, enter a
temporary password for the user.
You must have create permission for the cred table to use this
command.