This procedure should be done on every host in the NIS domain.
Assume the Primary Administrator role, or become superuser.
The Primary Administrator role includes the Primary Administrator profile. To create the role and assign the role to a user, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
Enable the publickey map in the name service.
Add the following line to the /etc/nsswitch.conf file:
publickey: nis |
Create a new key pair by using the newkey command.
# newkey -h hostname |
where hostname is the name of the client.
In the following example, earth is set up as a secure NIS client.
# newkey -h earth Adding new key for unix.earth@example.com New Password: <Type password> Retype password:<Retype password> Please wait for the database to get updated... Your new key has been successfully stored away. # |