From owner-freebsd-questions@FreeBSD.ORG Wed Jan 24 15:09:42 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 246AA16A40B for ; Wed, 24 Jan 2007 15:09:42 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (www.unsane.co.uk [85.233.185.162]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC7013C480 for ; Wed, 24 Jan 2007 15:09:41 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.8/8.13.8) with ESMTP id l0OFA5vS013188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jan 2007 15:10:07 GMT (envelope-from jhary@unsane.co.uk) Message-ID: <45B776A8.30802@unsane.co.uk> Date: Wed, 24 Jan 2007 15:09:28 +0000 From: Vince User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: Warren Head References: <51e113440701240553t53217acfna5c60db02ddeb3c8@mail.gmail.com> In-Reply-To: <51e113440701240553t53217acfna5c60db02ddeb3c8@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: nfs mount rw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 15:09:42 -0000 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"