Solaris ネーミングの設定と構成

新しいクライアントマシンを初期設定する方法

  1. 次のコマンドを入力して、新しいクライアントマシン上で新しいクライアントを初期設定します。

    -i オプションはクライアントを初期設定します。-d オプションは新しい NIS+ ドメイン名を指定します。(ドメイン名が指定されない場合、そのデフォルトは現在のドメイン名となります)。-h オプションは NIS+ サーバーのホスト名を指定します。

    client1# nisclient -i -d doc.com. -h master1 
    Initializing client client1 for domain "doc.com.". 
    Once initialization is done, you will need to reboot your machine. 
    Do you want to continue? (type 'y' to continue, 'n' to exit this script)
  2. y を入力します。

    n を入力するとスクリプトが終了します。クライアントの /etc/hosts ファイルにルートサーバーのエントリがない場合、スクリプトはルートサーバーの IP アドレスの入力を指示します。

    Do you want to continue? (type 'y' to continue, 'n' to exit this script) 
    y 
    Type server master1's IP address:
  3. 正しい IP アドレスを入力して、Return キーを押します。

    この例では、アドレス 123.123.123.123 を使用します。

    Type server master1's IP address: 123.123.123.123 
    setting up the domain information... 
    setting up the name service switch information... 
    At the prompt below, type the network password (also known as the  
    Secure-RPC password) that you obtained either from your administrator 
    or from running the nispopulate script.  
    Please enter the Secure-RPC password for root:
  4. Secure RPC パスワード (ネットワークパスワード) がルートのログインパスワードと異なる場合のみ、Secure RPC パスワードを入力します。

    この例では、デフォルトの nisplus を使用します。

    パスワードは画面に表示されません。入力を誤った場合、正しいパスワードを入力するよう要求されます。2 回目も入力を誤った場合、スクリプトが終了し、前回のネットワークサービスが復元されます。この場合、スクリプトを再度実行してください。

    Please enter the login password for root:
  5. このクライアントマシンの root パスワードを入力します。

    パスワードは画面に表示されません。(ネットワークパスワードと root のログインパスワードが同じ場合、root のログインパスワードの入力要求はありません)。

    root パスワードを入力すると、このマシンの資格が変化します。ここで、このマシンでは RPC パスワードと root パスワードが同じになります。

    Please enter the login password for root: 
    Wrote secret key into /etc/.rootkey 
    Your network password has been changed to your login one. 
    Your network and login passwords are now the same. 
    Client initialization completed!! 
    Please reboot your machine for changes to take effect.
  6. クライアントマシンを再起動します。

    ここで行なった変更は、マシンを再起動すると有効になります。

    以上の手順により、この NIS+ クライアントマシンのユーザーを NIS+ ドメインに追加できるようになりました。