LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2009, 12:07 PM   #1
tamenglang
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
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?
 
Old 04-29-2009, 02:34 PM   #2
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Did you restart the nfs server after changing the /etc/exports file?

After restart try mount -o remount /home/public
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
service nfs cannot be changed from off aboulafia Linux - Newbie 3 08-31-2006 03:36 AM
NFS service problem DanielTan Linux - General 22 06-11-2005 10:19 PM
nfs service on linux suchi_s Linux - Software 1 05-18-2005 11:04 AM
nfs and windows service for unix 3.5 yyjsir Linux - Networking 0 02-03-2005 04:36 AM
service nfs start Soulful93 Linux - Networking 1 06-13-2004 03:25 AM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration