Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2007 15:09:28 +0000
From:      Vince <jhary@unsane.co.uk>
To:        Warren Head <warrenhead@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: nfs mount rw
Message-ID:  <45B776A8.30802@unsane.co.uk>
In-Reply-To: <51e113440701240553t53217acfna5c60db02ddeb3c8@mail.gmail.com>
References:  <51e113440701240553t53217acfna5c60db02ddeb3c8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warren Head wrote:
> Hi,
> 
> 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 131.104.48.16
           /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
255.255.255.0

so not sure where you got that from.

> When I -HUP mountd though, it tells me that the line in the exports file is
> wrong.
> 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,
remote
     access by root will be mapped to that credential instead of -2:-2.
 If a
     -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 :)


Vince

> How should I specify the (rw) part?
> 
> Thanks,
> 
> Warren
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45B776A8.30802>