Thursday, June 27, 2013
NFS enable root authorization for client
client
root@HPHost:/hroot# grep /NFSShare /etc/mnttab
SolHost:/NFSShare /NFSShare nfs rsize=32768,wsize=32768,NFSv3,dev=4 0 0 1374220408
root@HPHost:/hroot#
root@HPHost:/hroot#
root@HPHost:/hroot# ls -ld /NFSShare
drwxrwxrwx 16 100028 grplos 16 Jul 22 15:52 /NFSShare
root@HPHost:/hroot#
root@HPHost:/NFSShare/CS4_SPM# touch test3
-rw-r----- 1 nobody nogroup 0 Jul 22 16:07 test3
Server
(SolHost:/root)# dfshares
RESOURCE SERVER ACCESS TRANSPORT
SolHost:/NFSShare SolHost - -
(SolHost:/root)#
enable root access to all host
(SolHost:/root)# share -F nfs -o rw,anon=0 /NFSShare
(SolHost:/root)# exportfs -v
share -F nfs
- /NFSShare rw,anon=0 ""
(SolHost:/root)#
(SolHost:/root)#
client
root@HPHost:/NFSShare/CS4_SPM# touch test7
root@HPHost:/NFSShare/CS4_SPM# ls -ltr test7
-rw-r----- 1 root sys 0 Jul 22 16:17 test7
root@HPHost:/NFSShare/CS4_SPM#
Subscribe to:
Posts (Atom)