이 예에서는 사용자 "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
& 문자는 사용자의 이름에 대응되며 ? 문자는 사용자 이름의 첫번째 글자에 대응됩니다. 다음은 와일드카드를 사용하여 대응하는 모든 사용자를 찾습니다.
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
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