Go to main content
Oracle® ZFS Storage Appliance 管理ガイド、Release OS8.7.0

印刷ビューの終了

更新: 2017 年 3 月
 
 

SMB の自動ホーム規則の追加 (CLI)

  1. configuration services smb に移動します。
  2. 自動ホーム規則を追加するには create コマンドを使用し、既存の規則を一覧表示するには list コマンドを使用します。

    この例では、ユーザー「Bill」に対する規則を追加してから、規則を一覧表示します。

    hostname:> configuration services smb
    hostname:configuration services smb> create
    hostname:configuration services rule (uncommitted)> set use_nss=false 
    hostname:configuration services rule (uncommitted)> set user=Bill
    hostname:configuration services rule (uncommitted)> set directory=/export/wdp
    hostname:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
       ou=Engineering,CN=myhome"
    hostname:configuration services rule (uncommitted)> commit
    hostname:configuration services smb> list
    RULE       NSS      USER         DIRECTORY            CONTAINER           
    rule-000   false    Bill         /export/wdp          dc=com,dc=fishworks,
       ou=Engineering,CN=myhome
  3. ワイルドカード文字を使用して自動ホーム規則を作成します。

    & 文字はユーザーのユーザー名に相当し、? 文字はユーザーのユーザー名の最初の文字に相当します。次の例では、ワイルドカードを使ってすべてのユーザーを適合させます。

    hostname:configuration services smb> create
    hostname:configuration services rule (uncommitted)> set use_nss=false 
    hostname:configuration services rule (uncommitted)> set user=*
    hostname:configuration services rule (uncommitted)> set directory=/export/?/&
    hostname:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
       ou=Engineering,CN=myhome"
    hostname:configuration services rule (uncommitted)> commit
    hostname:configuration services smb> list
    RULE       NSS      USER         DIRECTORY            CONTAINER           
    rule-000   false    Bill         /export/wdp          dc=com,dc=fishworks,
       ou=Engineering,CN=myhome
  4. ネームサービススイッチを使用して自動ホーム規則を作成することもできます。
    hostname:configuration services smb> create
    hostname:configuration services rule (uncommitted)> set use_nss=true 
    hostname:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
       ou=Engineering,CN=myhome"
    hostname:configuration services rule (uncommitted)> commit
    hostname:configuration services smb> list
    RULE       NSS      USER         DIRECTORY            CONTAINER           
    rule-000   true                                       dc=com,dc=fishworks,
       ou=Engineering,CN=myhome