LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2005, 07:21 AM   #1
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Rep: Reputation: 15
NFS client write permissions


Hi

I am mounting a directory from a Slack 10.0 to a Slack 10.1 box. The drive mounts just fine except for a permissions error kicked up on the client machine (10.1 box) when I want to write to the drive.

The /var/lib/nfs/etab file on the server reads:
Code:
/home/myself/SHAREZ
192.168.1.20(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_
all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anon
gid=-2)
What else should I be checking to provide the client permission to modify shared files or create new files/directories on the NFS drive?

TIA
 
Old 05-02-2005, 08:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why are you using all those options?? looks like you just clicked every box or added every option you could see.... just use rw,sync options.
 
Old 05-02-2005, 09:28 AM   #3
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
Quote:
acid_kewpie wrote:
why are you using all those options??
Actually, those tend to be the default settings on NFS as far as I can tell. In any event, even specifying simply rw,sync in the /etc/exports and mounting the drive again yields the same problem, i.e.
Code:
touch: cannot touch '/mnt/SHAREZ/test.txt': Permission denied
Back to square one. Any one else have any ideas?

Thanks
 
Old 05-02-2005, 03:20 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Those aren't default options at all... there really aren't any default options, as it's so basic. something like "no_root_squash" opens up HUGE security issues, that's no default.

well then that should be all you need for the NFS stage. The great thing about NFS is that it's still unix level all the way, obviously unlike samba, SO... if you have a permission denied chances are it's due to existing serverside filesystem permissions, and not related to NFS at all.
 
Old 05-02-2005, 04:53 PM   #5
tireseas
Member
 
Registered: Jun 2003
Location: London, UK
Distribution: Slackware 10 & 10.1
Posts: 149

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
Those aren't default options at all... there really aren't any default options, as it's so basic. something like "no_root_squash" opens up HUGE security issues, that's no default.
hmmmm .... according to both the man pages as well as http://www.troubleshooters.com/linux/nfs.htm it would appear that there are some defaults, viz.

secure;
ro;
sync (for versions post 1.0.0);
nohide

In addition to these certain defaults can be explcitly stated.

This was taken from the man pages, which would seem to suggest that there are defaults ... so what do you mean when you write that there are no defaults? What are you referring to?


Quote:
SO... if you have a permission denied chances are it's due to existing serverside filesystem permissions, and not related to NFS at all.
OK ... so you mean that the server side directory being exported needs to have its permissions modified in order to allow the client to write to that directory as well? Would that be world-writable or group writable or user writable? Would there be any settings/permissions to modify on the client side?

TIA
 
Old 05-03-2005, 07:52 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the access rights model over NFS is exactly the same as a native Unix filesystem. NFS has no right to override local file system attributes. it's not a case of making it world writable etc... just complaing with whatever conventional Unix permissions.
 
  


Reply



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
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
NFS - write error from client to host echo_max Linux - Software 0 07-25-2005 03:17 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:03 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
Open Source Consulting | Domain Registration