NIS 도메인의 모든 호스트에서 이 절차를 수행합니다.
시작하기 전에
root 역할을 맡아야 합니다. 자세한 내용은 Oracle Solaris 11.2의 사용자 및 프로세스 보안 의 지정된 관리 권한 사용을 참조하십시오.
# 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
이 시스템에서는 기본값인 files와 다르므로 publickey의 값이 나열됩니다.
# newkey -h hostname
여기서 hostname은 클라이언트의 이름입니다.
다음 예에서는 Name Service Security 권한 프로파일이 있는 관리자가 earth를 보안 NIS 클라이언트로 설정합니다.
# 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. #