View previous topic :: View next topic |
Author |
Message |
durty_nacho Tux's lil' helper
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Tue Jul 15, 2008 4:48 am Post subject: SOLVED: Cannot write via NFS |
|
|
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 |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Tue Jul 15, 2008 4:54 am Post subject: |
|
|
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 |
|
|
durty_nacho Tux's lil' helper
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Tue Jul 15, 2008 4:59 am Post subject: |
|
|
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 |
|
|
durty_nacho Tux's lil' helper
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Tue Jul 15, 2008 6:21 pm Post subject: |
|
|
*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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Tue Jul 15, 2008 8:53 pm Post subject: |
|
|
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 |
|
|
durty_nacho Tux's lil' helper
Joined: 22 Jul 2004 Posts: 128 Location: Dallas
|
Posted: Wed Jul 16, 2008 12:25 am Post subject: |
|
|
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 |
|
|
|