NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5250
To Create New Credentials for an Existing NIS+
Principal
Sometimes a user or host needs new credentials, because the old ones
have become corrupted or cannot be used. Follow these steps:
1. Log in as root to the NIS+ master server for the domain.
2. Issue the following command to create new credentials for the NIS+
principal and overwrite any existing credentials:
/usr/lib/nis/nisclient -co principalname
where principalname is username.domainname for a non-root user or
hostname.domainname for a root user (host).
Supply the password when you are prompted for it.
3. Wait two minutes for the NIS+ replicas to be updated.
4. If the principal is a root user (host), log into the host as root, and
issue the following command to reinitialize it:
/usr/lib/nis/nisclient -i -h master_servername -d
domainname
5. Test the login by having the user or root user log in. If the login does
not work, try killing and restarting rpc.nisd on the master server:
ps -ef | grep rpc.nisd
kill PID
rpc.nisd
If you are running in NIS compatibility mode, be sure to restart
rpc.nisd with the -Y option:
rpc.nisd -Y
For more information, see the following man pages: nisclient(1M) and
rpc.nisd(1M).