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

新しい非ルートドメインを作成する方法

  1. NIS+ ドメインのルートマスターサーバー上のスーパーユーザー (root) として次のように入力し、新しい非ルートドメインマスターサーバーを作成します。

    -M オプションは、新しい非ルートドメインのマスターサーバーを作成することを示します。-d オプションは、ドメイン名 (この例では sales.doc.com.) を指定します。-h オプションは、新しいドメインのマスターサーバーになるクライアントマシン (この例では client2) を指定します。

    master1# nisserver -M -d sales.doc.com. -h client2 
    This script sets up a non-root NIS+ master server for domain sales.doc.com 
    Domain name : sales.doc.com. 
    NIS+ server : client2 
    NIS+ group : admin.sales.doc.com. 
    NIS (YP) compatibility : OFF 
    Security level : 2=DES 
    Is this information correct? (type 'y' to accept, 'n' to change)

    新しい非ルートドメインのマスターサーバーは、ルートサーバーと同じデフォルト値によって作成されます。NIS+ グループ、NIS (YP) 互換性、およびセキュリティレベルの詳細は、「ルートマスターサーバーを作成する方法」を参照してください。

  2. y を入力して操作を続けます。

    n を入力すると、スクリプトは正しい情報の入力を要求します。(n を入力した場合の操作については、「誤った情報を変更する方法」を参照してください)。

    Is this information correct? (type 'y' to accept, 'n' to change)  
    y 
    This script sets up machine "client2" as an NIS+ non-root master server 
    for domain sales.doc.com. 
    Do you want to continue? (type 'y' to continue, 'n' to exit this script)
  3. y を入力して操作を続けます。

    n を入力すると、スクリプトは安全に終了します。クライアントマシン上で rpc.nisd が動作していない場合、スクリプトは自動的に終了します。

    Do you want to continue? (type 'y' to continue, 'n' to exit this script)
    y 
    running nissetup ... 
    org_dir.sales.doc.com. created 
    groups_dir.sales.doc.com. created 
    ... 
    ... 
    setting NIS+ group admin.sales.doc.com. ... 
    The system client2 is now configured as a non-root server for
    domain sales.doc.com. 
    You can now populate the standard NIS+ tables by using the nispopulate 
    or /usr/lib/nis/nisaddent commands. 

    これで、マシン client2sales.doc.com. ドメインのマスターサーバーになりました。sales.doc.com. ドメインは doc.com. ドメインのサブドメインです。マシン client2 は、依然としてルートドメイン doc.com. のクライアントであり、しかも sales.doc.com. ドメインのマスターサーバーでもあります。

    これで、sales.doc.com. ドメインの新しいマスターサーバーに標準の NIS+ テーブルを生成できます。