-
오토홈 규칙을 추가하려면 create 명령을 사용하고 기존 규칙을 나열하려면 list 명령을 사용합니다. 이 예에서는 사용자 "Bill"에게 규칙을 추가하고 규칙을 나열합니다.
twofish:> configuration services smb
twofish:configuration services smb> create
twofish:configuration services rule (uncommitted)> set use_nss=false
twofish:configuration services rule (uncommitted)> set user=Bill
twofish:configuration services rule (uncommitted)> set directory=/export/wdp
twofish:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
ou=Engineering,CN=myhome"
twofish:configuration services rule (uncommitted)> commit
twofish:configuration services smb> list
RULE NSS USER DIRECTORY CONTAINER
rule-000 false Bill /export/wdp dc=com,dc=fishworks,
ou=Engineering,CN=myhome
-
오토홈 규칙은 와일드카드 문자를 사용하여 만들 수 있습니다. & 문자는 사용자의 이름에 대응되며 ? 문자는 사용자 이름의 첫번째 글자에 대응됩니다. 다음은 와일드카드를 사용하여 대응하는 모든 사용자를 찾습니다.
twofish:configuration services smb> create
twofish:configuration services rule (uncommitted)> set use_nss=false
twofish:configuration services rule (uncommitted)> set user=*
twofish:configuration services rule (uncommitted)> set directory=/export/?/&
twofish:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
ou=Engineering,CN=myhome"
twofish:configuration services rule (uncommitted)> commit
twofish:configuration services smb> list
RULE NSS USER DIRECTORY CONTAINER
rule-000 false Bill /export/wdp dc=com,dc=fishworks,
ou=Engineering,CN=myhome
-
이름 서비스 스위치를 사용하여 오토홈 규칙을 만들 수도 있습니다.
twofish:configuration services smb> create
twofish:configuration services rule (uncommitted)> set use_nss=true
twofish:configuration services rule (uncommitted)> set container="dc=com,dc=fishworks,
ou=Engineering,CN=myhome"
twofish:configuration services rule (uncommitted)> commit
twofish:configuration services smb> list
RULE NSS USER DIRECTORY CONTAINER
rule-000 true dc=com,dc=fishworks,
ou=Engineering,CN=myhome