在 SMF 服务中使用命名服务切换参数 svc:/system/name-service/switch 定义权限数据库的名称服务范围。此服务中针对权限数据库的属性有 auth_attr、password 和 prof_attr。password 属性设置 passwd 和 user_attr 数据库的命名服务优先级。prof_attr 属性设置 prof_attr 和 exec_attr 数据库的命名服务优先级。
在以下输出中,auth_attr、password 和 prof_attr 条目未列出。因此,权限数据库使用的是 files 命名服务。
# svccfg -s name-service/switch listprop config config application config/value_authorization astring solaris.smf.value.name-service.switch config/default astring files config/host astring "files ldap dns" config/printer astring "user files ldap"