Go to main content
Oracle® ZFS Storage Appliance 관리 설⁠명⁠서, 릴⁠리⁠스 OS8.6.x

인쇄 보기 종료

업데이트 날짜: 2016년 9월
 
 

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