Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: Cannot write via NFS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Tue Jul 15, 2008 4:48 am    Post subject: SOLVED: Cannot write via NFS Reply with quote

After reading the NFS FAQ for Gentoo, as well as the sourceforge one, I am led to believe that all I need to do in order to allow write access via NFS is make sure the drives are mounted with the "rw" option as defined in my /etc/exports file. Is this true? Writes fail, and I suspect I am missing something. All shares mount cleanly and can be read from.

My kernel config for both the client and server machines have the following enabled:

Code:
<*>   NFS file system support                                             
  │ │    [*]     Provide NFSv3 client support                                       
  │ │    <*>   NFS server support                                                   
  │ │    [*]     Provide NFSv3 server support                                   
  │ │    [*]     Provide NFS server over TCP support


And this is my /etc/exports file:

Code:
/home/$USER/public_html $IP_ADDRESS/MASK(async,no_root_squash,no_subtree_check,rw)


Do any of you know what I am missing?
_________________
More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols


Last edited by durty_nacho on Wed Jul 16, 2008 12:25 am; edited 1 time in total
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Tue Jul 15, 2008 4:54 am    Post subject: Reply with quote

a) try to write a file on the client as root there, because the server will still check permissions - user ID etc.
b) mount the exported directory on the server itself - for debugging purposes.
Back to top
View user's profile Send private message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Tue Jul 15, 2008 4:59 am    Post subject: Reply with quote

The exported directory is already mounted on the server, it mounts at boot. Writing under root from the client to the server worked; is this because root has the same UID and GID on both machines? Will I have to have an identical user, with the same ID, on both machines to be able to write?
_________________
More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols
Back to top
View user's profile Send private message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Tue Jul 15, 2008 6:21 pm    Post subject: Reply with quote

*bump*
_________________
More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Tue Jul 15, 2008 8:53 pm    Post subject: Reply with quote

durty_nacho wrote:
The exported directory is already mounted on the server, it mounts at boot. Writing under root from the client to the server worked; is this because root has the same UID and GID on both machines? Will I have to have an identical user, with the same ID, on both machines to be able to write?


yes.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
durty_nacho
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 128
Location: Dallas

PostPosted: Wed Jul 16, 2008 12:25 am    Post subject: Reply with quote

Lame.

Thanks.
_________________
More ways to blow blood cells in your face
React with four bombs and six fire missiles
Armed with seven rounds of space doo-doo pistols
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum