Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-24-2003, 08:15 AM   #1
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
NFS: how can I get write-access??


A RedHat9-Shrike-Dist as an NFS-server... all nfs-services are starting's my /etc/exports:
  • /etc/exports
    /home/test %ip of client% (rw)
well...everything works...(but write-access)....I'm mounting this share on a Neolinux (NW Capio 508)-TClient with the ip %ip of client%... like this:
  • mount %ip of rh9-server%:/home/test /writable/mount_server -o rw
....and also that works without an error message....but if I change to the directory /writable/mount_server on the client and want to create a new file with "vi".... per command "wq!"....this error occurs
can't open file for writing...
mmmh.... I can't understand what my redhat is doing...

cause I share this folder for the client as "rw" ... and I mount the share on the client with the options "rw".....
what the hell did I wrong?
thanks for all advices
Old 12-24-2003, 08:33 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
What user as your trying to write the files as? If it is the root user on the client machine then this is the correct behaviour, the root user on an NFS client is 'squashed' be default. Any UID 0 (root) access from the client gets mapped to the nobody user on the server. You can change this by using the no_root_squash option on the server. Typically set in /etc/exports something like

Old 12-24-2003, 09:15 AM   #3
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Rep: Reputation: 15
Re: NFS: how can I get write-access??

Make sure you don't have a space after the ip address:
/home (rw) - bad
/home - good
Old 12-24-2003, 09:39 AM   #4
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
thanks a lot!!!!!

it works now with:
/home/test %client-ip%(rw,no_root_squash,sync)
problem is solved


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
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 10:23 PM
NFS write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 09:48 PM
NFS problem - no write access? aaronfg Linux - Newbie 3 12-22-2004 06:52 AM
Write to NFS reiserfs? Euronymous Linux - Networking 1 10-24-2004 04:26 PM
NFS non root read write access matthewkeen Linux - Networking 8 09-09-2004 11:52 PM

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

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