Perform this procedure on every host in the NIS domain.
Before You Begin
You must assume the root role. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
# svccfg -s name-service/switch listprop config config application config/value_authorization astring solaris.smf.value.name-service.switch config/default astring files config/host astring "files nis dns" config/printer astring "user files nis"
If the value of config/default is nis, you can stop here.
# svccfg -s name-service/switch setprop config/publickey = astring: "nis" # svccfg -s name-service/switch:default refresh
# svccfg -s name-service/switch listprop config application config/value_authorization astring solaris.smf.value.name-service.switch config/default astring files config/host astring "files nis dns" config/printer astring "user files nis" config/publickey astring nis
On this system, the value of publickey is listed because it differs from the default, files.
# newkey -h hostname
where hostname is the name of the client.
In the following example, and administrator with the Name Service Security rights profile sets up earth as a secure NIS client.
# newkey -h earth Adding new key for [email protected] New Password: xxxxxxxx Retype password: xxxxxxxx Please wait for the database to get updated... Your new key has been successfully stored away. #