この手順は、NIS ドメイン内のすべてのホスト上で実行します。
始める前に
root 役割になる必要があります。詳細は、Oracle Solaris 11.3 でのユーザーとプロセスのセキュリティー保護 の 割り当てられている管理権利の使用を参照してください。
# 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"
config/default の値が nis である場合は、ここで停止できます。
# 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
このシステムでは、publickey がデフォルトの files とは異なるため、その値が表示されます。
# newkey -h hostname
hostname は、クライアント名です。
次の例では、Name Service Security 権利プロファイルを持つ管理者が、セキュアな NIS クライアントとして earth を設定します。
# newkey -h earth Adding new key for unix.earth@example.com New Password: xxxxxxxx Retype password: xxxxxxxx Please wait for the database to get updated... Your new key has been successfully stored away. #