On Apr 30, 2005, at 9:32 AM, joe_schmoe wrote:
I am attempting to mount an nfs share for a client to write on. On my server machine, in /etc/exports I am adding /home/myself/SHAREZ 192.168.1.20(rw,no_wdelay,secure)
Then I run exportfs -ra
Should also run /etc/rc.d/rc.portmap if it's not set to be executable.
On the client machine (at 192.168.1.20) I have mkdir /mnt/SHAREZ and as root, enter
mount -t nfs -o rw 192.168.1.40:/home/myself/SHAREZ /mnt/SHAREZ
It mounts fine and can be seen from the client machine.
BUT: I cannot write to the share.
As far as I can tell, I have all the right permissions set up on both machines ... but the problem persists.
What might I be missing here?
Depends. NFS just exports the raw UID/GID ownership for machines between machines, and there's no guarantee that the client has the same users with the same UIDs and GIDs set. Other than that, I'd be willing to bet you're trying to write to the device as the root user. By default, NFS squashes root down to the nobody user for security reasons. If you need root on the client to write to it, use the no_root_squash option.
Thanks Alan
In my reply to Kurt I printed out the output of /var/lib/nfs/etab and, according to that, it appears that I am mounting the nfs with the no_root_squash enabled.
/j _______________________________________________ Slackware mailing list [email protected] http://www.kurtwerks.com/mailman/listinfo/slackware
