1834175 Members
2438 Online
110064 Solutions
New Discussion

NFS problems .

 
SOLVED
Go to solution
Chapaya
Frequent Advisor

NFS problems .

Hello ,
I have some problems with NFS perrmissions .
The NFS server is apptest , i exported a directory and i can mount it on the client , but i cant write to the mounted directory .

bye,
Eran .
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: NFS problems .

You need to export the directory with read-write permissions, which should be the default.

The entry in your /etc/exports file should probably look something like:

/filesystem/to/export -rw=client_machine_name

Then run

#exportfs -va

To re-export the filesystem.

If you'll post the entry from your /etc/exports file we may be able to tell if anything is wrong.

Also 'man exports' for more information.
Chapaya
Frequent Advisor

Re: NFS problems .

hello ,

/etc/exports :
/backup -rw=app2


Eran.
Patrick Wallek
Honored Contributor

Re: NFS problems .

What are the permissions on the directory? On the server? The client? What user is trying to write to the directory? Does it have permission to write to the directory? Just because it is mounted rw, the user still has to have appropriate permissions to the dir.
Caesar_3
Esteemed Contributor

Re: NFS problems .

Hello!

Export the directory with this options
-root=app2,-rw=app2
Also check the permissions of the exported
directory and the mount point directory,
that you have write permissions.

Caesar
Chapaya
Frequent Advisor

Re: NFS problems .

The directories permissions are 777 and i still cant write to the exported directory .

Eran .
Brian Hackley
Honored Contributor

Re: NFS problems .

Eran,
The NFS Server thinks the client is some other hostname than that which is listed in /etc/exports.

Check the mapping of the IP to hostname of the client. Do this by:
1. Go to the client. telnet to apptest
2. who -mR the name to put into /etc/exports will be in the parans.

Remember to exportfs -av after changed /etc/exports

HTH,
-> Brian
Ask me about telecommuting!