Thursday, May 24, 2018

Solaris ZFS Share NFS root control prefers to host name other than IP address

Solaris ZFS Share NFS root control prefers to host name other than IP address

Goal is to mount nfs share as root on client machine

Case 1:
drwx------+ 14 testuser    users         18 May 15 11:57 weekend
              user:testuser:rwxpdDaARWcC-s:fd-----:allow

With below command, on client, after mounted, root doesn't have any permission on weekend.
zfs set share=name=uatlogs,path=/uatlogs,prot=nfs,sec=sys,root=192.168.1.15,prot=smb,csc=auto  nfsserver/uatlogs

Solution:
use server name instead, root on client gets right permission as root.
zfs set share=name=uatlogs,path=/uatlogs,prot=nfs,sec=sys,root=uat01.goweekend.ca,prot=smb,csc=auto  nfsserver/uatlogs


No comments:

Post a Comment