Cet exemple ajoute une règle pour l'utilisateur "Bill" avant de répertorier les règles :
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
L'esperluette & correspond au nom de l'utilisateur et le point d'interrogation ? à la première lettre du nom de l'utilisateur. Les éléments suivants utilisent des caractères génériques pour correspondre à tous les utilisateurs :
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