LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nfs is a big problem (https://www.linuxquestions.org/questions/linux-networking-3/nfs-is-a-big-problem-299476/)

tulip4heaven 03-09-2005 01:24 AM

nfs is a big problem
 
Dear Fellows

Hi,

I have 2 linux machines , i wanna to share my files using nfs but i m getting some problems

X1 : 192.168.7.132
x2 : 192.168.7.133

Assume i m logging on both machine as a root admin

On machine X1 my etc/exports files has the following settings

/home/bravo/testnfs 192.168.7.132(rw,no_root_squash)


bravo is my user name and testnfs is a folder in it


now my other machine X2

when i apply following mount command on my machine X2 it give me error

Reason give by server : permisson denied

mount 192.168.7.132:/home/bravo/nfstest /home/charlie/nfstest

charlie is my user on machine X2 and a folder nfstest is also exist in its home directory.

Is there any help.

waiting for your positive reply
Thanks

gerardt 03-09-2005 02:31 AM

x1 must allow x2's ip so your exports line should be

/home/bravo/testnfs 192.168.7.133(rw,no_root_squash)

in x1 /etc/exports

tulip4heaven 03-09-2005 02:47 AM

Dear Sir,

Hi,

Thanks for replying,

i changed my export file but it again showing me the same error.

any help

Thanks

gerardt 03-09-2005 04:38 AM

What Distro are you running? SuSE does a reverse lookup before it will allow mounting. So there must be a host or DNS entry. RH/FC does not

PDock 03-09-2005 07:20 AM

On X1 bravo has a user# uid and a group# gid which are probably different from the uid/gid s of Charlie on X2. The issue really isn't with nfs but your basic file permissions and where you are trying to mount the common directory.

gerardt 03-09-2005 08:02 AM

Very good, nfs works better under a nis or ldap authentication process where all users are located centrally

If you go and change UID's on your systems, don't forget that the file ownerships will change too so you will need to do a chown.


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