Hi,
This is my next post about "mount nfs Permission deniad" after change sec option in export file on Netapp storage to "none".
So,
I need export one wolume (nfs2) to all clients (linux hosts and servers) without connet to LDAP or NIS database:
netapp-storage> exportfs
/vol/vol0/home -sec=sys,rw,nosuid
/vol/vol0 -sec=sys,rw,anon=0,nosuid
/vol/nfs -sec=sys,rw=10.0.138.151,nosuid
/vol/nfs2 -sec=sys,rw,nosuid
All users in clients hosts have different UID/GID.
All user can mount /vol/nfs2 in client station but all users saved file to its own UID/GID.
mount -t nfs -o vers=3,rw,bg,tcp,timeo=600,retrans=2,rsize=2048,wsize=2048,soft,intr 10.7.36.77:/vol/nfs2 /mnt/nfs2
where 10.7.36.77 is netapp-storage IP and 10.0.138.151 is client-simulator IP and security style volume nfs2 is UNIX.
client-simulator:/mnt/nfs2 # ls -la
total 12
drwxrwxrwx 3 nobody nogroup 4096 May 25 2012 .
drwxr-xr-x 4 root root 4096 May 24 10:17 ..
drwxrwxrwx 11 root root 4096 May 25 08:00 .snapshot
-rw-r--r-- 1 andrzej users 0 May 25 2012 andrzej_test
-rw-r--r-- 1 pawel users 0 May 25 2012 pawel_test
-rw-r--r-- 1 nobody nogroup 0 May 25 2012 root_test
I want all users to write down to this resource with the same privileges so I changed the option sec to "none" like "all_squash" option in NFS server.
netapp-storage> exportfs
/vol/vol0/home -sec=sys,rw,nosuid
/vol/vol0 -sec=sys,rw,anon=0,nosuid
/vol/nfs -sec=sys,rw=10.0.138.151,nosuid
/vol/nfs2 -sec=none,rw,nosuid
All looks great:
client-simulator:/mnt/nfs2 # ls -la
total 12
drwxrwxrwx 3 nobody nogroup 4096 May 25 2012 .
drwxr-xr-x 4 root root 4096 May 24 10:17 ..
drwxrwxrwx 11 root root 4096 May 25 08:00 .snapshot
-rw-r--r-- 1 andrzej users 0 May 25 10:56 andrzej_test
-rw-r--r-- 1 nobody nogroup 0 May 25 2012 andrzej_test2
-rw-r--r-- 1 pawel users 0 May 25 10:56 pawel_test
-rw-r--r-- 1 nobody nogroup 0 May 25 2012 pawel_test2
-rw-r--r-- 1 nobody nogroup 0 May 25 10:55 root_test
-rw-r--r-- 1 nobody nogroup 0 May 25 2012 root_test2
but after restart client I can't mount again:
client-simulator:~ # mount -t nfs -v -o rw,bg,vers=3,nosuid,tcp,timeo=600,retrans=2,rsize=2048,wsize=2048,soft,nointr 10.7.36.77:/vol/nfs2 /mnt/nfs2
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.7.36.77 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 10.7.36.77 prog 100005 vers 3 prot TCP port 4046
mount.nfs: trying text-based options 'bg,timeo=600,retrans=2,rsize=2048,wsize=2048,soft,nointr,addr=10.7.36.77,vers=3,proto=tcp,mountvers=3,mountproto=tcp,mountport=4046'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 10.7.36.77:/vol/nfs2
When will restore the previous settings "sec" option are back to normal and client can mount this nfs share.
What is it ????
Is "none" option changes something in the access to the resource and storage?
help !!!!!
Pawel
OnTap 7.3.6 FAS3140