NIS+ Solaris 10, 마스터 서버 설정

NIS+ Solaris 10, 마스터 서버 설정

NIS+ 이름 지정 서비스를 사용한 것은 이번이 처음입니다.

이 스크립트를 사용하여 내 호스트를 기본 루트 서버로 구성하고 싶습니다.

/usr/lib/nis/nisserver -r -d doc.com.

이 오류가 발생했습니다.

> ********        ********    WARNING    ********        ******** NIS+ might not be supported in a future release. Tools to aid the migration
> from NIS+ to LDAP are available in the Solaris 9 operating
> environment. For more information, visit
> http://www.sun.com/directory/nisplus/transition.html
> ********        ********    *******    ********        ********
> 
> This script sets up this machine "master" as an NIS+ root master
> server for domain doc.com..
> 
> Domain name             : doc.com. NIS+ group              :
> admin.doc.com. NIS (YP) compatibility  : OFF Security level          :
> 2=DES
> 
> Is this information correct? (type 'y' to accept, 'n' to change) y
> 
> This script will set up your machine as a root master server for
> domain doc.com. without NIS compatibility at security level 2.
> 
> WARNING: this script removes directories and files related to NIS+
> under /var/nis directory with the exception of the client_info
> NIS_COLD_START file which will be renamed to <file>.no_nisplus.  If
> you want to save these files, you should abort from this script now to
> save these files first.
> 
> WARNING: once this script is executed, you will not be able to restore
> the existing NIS+ server environment.  However, you can restore your
> NIS+ client environment using "nisclient -r" with the proper domain
> name and server information.
> 
> Do you want to continue? (type 'y' to continue, 'n' to exit this
> script) y
> 
> setting up domain information "doc.com." ...
> 
> setting up switch information ... switch configuration file already
> set to use NIS+.
> 
> killing NIS and NIS+ processes ... stopping nscd ...
> 
> setup NIS_GROUP environment variable ...
> 
> rm /var/nis files ...
> 
> running nisinit ... This machine is in the "doc.com." NIS+ domain.
> Setting up root server ... All done.
> 
> starting root server at security level 0 to create credentials...
> 
> running nissetup to create standard directories and tables ...
> doc.com.: NIS+ servers unreachable. couldn't create org_dir.doc.com.
> **ERROR: it failed to create the tables.

이 오류를 찾아봤지만 해결책을 찾지 못했습니다.

답변1

오라클 웹사이트에서 이것을 확인하세요: 일반적인 NIS+ 네임스페이스 오류 메시지

여기에는 알려진 오류가 포함되어 있으며 해당 오류를 찾을 수 있는 위치를 알려줍니다.

이 특정 항목의 경우:

설명: NIS+ 명령 nissetup은 디렉토리와 테이블을 생성할 수 없습니다. 시스템 콘솔에서 시스템 오류 메시지를 확인하십시오.

시스템 오류 메시지가 발생하면 오류 메시지에 설명된 문제를 해결하고 nisserver를 다시 실행하십시오.

시스템 오류 메시지가 없으면 rpc.nisd 프로세스가 실행 중인지 확인하십시오. 실행 중이 아니면 다시 시작하고 nisserver를 다시 실행하십시오.

블록 인용

따라서 기본적으로 /var/adm/messages에서 오류를 확인하고 rpc 데몬이 실행 중인지 확인하세요.

ps -ef|grep rpc.nisd

출력이 비어 있으면 프로세스가 시작됩니다.

명령을 다시 실행하고 다른 세션이나 터미널에서 다음을 수행합니다.

tail -f /var/adm/messages

결과 오류를 확인하고 문제를 해결하기 위한 적절한 조치를 취할 수 있기를 바랍니다.

관련 정보