用于修改 nfsmapid 服务的语法已更改,现在通过在 /etc/nsswitch.conf 文件中使用 passwd 和 group 条目来映射 NFSv4 用户 ID 和组 ID。
nfsmapid 服务如下:
# svcs mapid STATE STIE FMRI online Apr_25 svc:/network/nfs/mapid:default
可如下所示修改此服务实例:
# svccfg -s svc:/network/nfs/mapid:default svc:/network/nfs/mapid:default> listprop nfs-props application nfs-props/nfsmapid_domain astring old.com general framework general/complete astring general/enabled boolean false restarter framework NONPERSISTENT restarter/logfile astring /var/svc/log/network-nfs-mapid:default.log restarter/contract count 137 restarter/start_pid count 1325 restarter/start_method_timestamp time 1366921047.240441000 restarter/start_method_waitstatus integer 0 restarter/auxiliary_state astring dependencies_satisfied restarter/next_state astring none restarter/state astring online restarter/state_timestamp time 1366921047.247849000 general_ovr framework NONPERSISTENT general_ovr/enabled boolean true svc:/network/nfs/mapid:default> setprop nfs-props/nfsmapid_domain = new.com svc:/network/nfs/mapid:default> listprop nfs-props application nfs-props/nfsmapid_domain astring new.com . . . svc:/network/nfs/mapid:default> exit # svcadm refresh svc:/network/nfs/mapid:default