Oracle® Solaris 11.2의 Kerberos 및 기타 인증 서비스 관리

인쇄 보기 종료

업데이트 날짜: 2014년 8월
 
 

NIS 호스트에 대한 Diffie-Hellman 키를 설정하는 방법

NIS 도메인의 모든 호스트에서 이 절차를 수행합니다.

시작하기 전에

root 역할을 맡아야 합니다. 자세한 내용은 Oracle Solaris 11.2의 사용자 및 프로세스 보안 의 지정된 관리 권한 사용을 참조하십시오.

  1. 기본 이름 지정 서비스가 NIS가 아닌 경우 publickey 맵을 이름 지정 서비스에 추가합니다.
    1. 이름 지정 서비스에 대한 config/default의 값이 nis가 아닌지 확인합니다.
      # 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인 경우 여기에서 중지할 수 있습니다.

    2. publickey에 대한 이름 지정 서비스를 nis로 설정합니다.
      # svccfg -s name-service/switch setprop config/publickey = astring: "nis"
      # svccfg -s name-service/switch:default refresh
    3. publickey 값을 확인합니다.
      # 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의 값이 나열됩니다.

  2. newkey 명령을 사용하여 새 키 쌍을 만듭니다.
    # newkey -h hostname

    여기서 hostname은 클라이언트의 이름입니다.

예 10-1  NIS 클라이언트에서 root에 대한 새 키 설정

다음 예에서는 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.
#