a trouble of nfs service
1、This is the nfs service's configure file
[root@localhost public]# vi /etc/exports
/home/public 60.191.63.*(rw,root_squash)
2、The nfs service directory is /home/public,it like this:
[root@localhost public]# pwd
/home/public
[root@localhost public]# ls -l
total 0
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:00 han
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:12 yz
[root@localhost public]# touch zy
[root@localhost public]# ls -l
total 0
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:00 han
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:12 yz
-rw-r--r-- 1 root root 0 04-29 06:42 zy
3、the client pc's ip address is 60.191.63.9,login as root,according above /etc/exports configure the directory of /home/public as root_squash,as this,root is squashed the user of nfsnobody,while i mount the nfs file,i shouldn't delete zy file,but to my surprise i delete it.
[root@localhost public]# ls -l
总计 0
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:00 han
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:12 yz
-rw-r--r-- 1 root root 0 2009-04-29 zy
[root@localhost public]# rm -f zy
[root@localhost public]# ls -l
总计 0
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:00 han
-rw-r--r-- 1 nfsnobody nfsnobody 0 04-29 03:12 yz
4、what's the reason?
|