nfs mount rw
jhary at unsane.co.uk
Wed Jan 24 15:09:42 UTC 2007
Warren Head wrote:
> I am trying to get write access on a nfs share.
> As far as I can tell by reading around, this should be the syntax in the
> exports file:
> /maptoshare machinetoshareto(rw)
hmm man exports suggests examples such as
/usr /usr/local -maproot=0:10 friends
/usr -maproot=daemon grumpy.cis.uoguelph.ca 18.104.22.168
/usr -ro -mapall=nobody
/u -maproot=bin: -network 131.104.48 -mask 255.255.255.0
/u2 -maproot=root friends
/u2 -alldirs -network cis-net -mask cis-mask
/cdrom -alldirs,quiet,ro -network 192.168.33.0 -mask
so not sure where you got that from.
> When I -HUP mountd though, it tells me that the line in the exports file is
> So I change it into this:
> /maptoshare machinetoshareto
> and then all is fine. I can mount it as well, but I don't have writing
> access, only reading.
Shoudl be rw by default. who doesnt have writing access? are the unix
permissions on both sides correct, if its an issue with root not being
able to write, the manpage says:
In the absence of -maproot and -mapall options, remote accesses by root
will result in using a credential of -2:-2. All other users will be
mapped to their remote credential. If a -maproot option is given,
access by root will be mapped to that credential instead of -2:-2.
-mapall option is given, all users (including root) will be mapped to
that credential in place of their own.
Hope this helps, sorry for the RTFM but is a cliche for a reason :)
> How should I specify the (rw) part?
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions