Solaris のシステム管理 (セキュリティサービス)

Diffie-Hellman 認証のために NIS+ の資格の鍵を設定する方法

NIS+ セキュリティの詳細については、『Solaris のシステム管理 (ネーミングとディレクトリサービス : DNS、NIS、LDAP 編)』を参照してください。

  1. スーパーユーザーになるか、同等の役割を引き受けます。

  2. /etc/nsswitch.conf ファイルを編集して、次の行を追加します。


    publickey: nisplus
  3. NIS+ クライアントを起動します。


    # nisinit -cH hostname
    

    hostname は、そのテーブルにクライアントマシン用のエントリを持つ、信頼されている NIS+ サーバー名です。

  4. 次のコマンドを入力して、クライアントを cred テーブルに追加します。


    # nisaddcred local
    # nisaddcred des
    
  5. keylogin コマンドを使用して、設定を確認します。

    パスワードを求めるプロンプトが出たら、この手順は正常に終了しています。

例 - NIS+ クライアント上で root の新しい鍵を設定する

次の例は、ホスト pluto を使用して、earth を NIS+ クライアントとして設定しています。警告は無視できます。keylogin コマンドが受け付けられて、earth が Secure NIS+ クライアントとして正しく設定されていることを確認しています。


# nisinit -cH pluto
NIS Server/Client setup utility.
This machine is in the North.Abc.COM. directory.
Setting up NIS+ client ...
All done.
# nisaddcred local
# nisaddcred des 
DES principal name : unix.earth@North.Abc.COM
Adding new key for unix.earth@North.Abc.Com (earth.North.Abc.COM.)
 
Network password: xxx <Return キーを押す>

Warning, password differs from login password.
Retype password: xxx <Return キーを押す>
 
# keylogin
Password:
#