Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2005 20:09:03 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        Eric Murphy <eam404@earthlink.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NFS question...
Message-ID:  <430A772F.103@daleco.biz>
In-Reply-To: <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net>
References:  <28830225.1124758310311.JavaMail.root@elwamui-karabash.atl.sa.earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Eric Murphy wrote:

>Hey guys...
>
>Ive setup a NFS correctly (I think) on my BSD 5.4 box
>
>Added 
>
>nfs_enable_enable="yes"
>rpcbind_enable="yes"
>portmap_enable="yes"
>
>in my rc.conf 
>
>and its seems to be working...
>
>My question is this..
>
>I can mount the shares without anyproblems as root...
>
>I CAN NOT mount them as a user...
>
>Now I added my UID (1001) to my SERVER's exports file with -maproot=1001
>
>Am i understaning this correctly that by adding that line in the config
>it gives me read/write access to the files on the SERVER? that does 
>NOT allow me to mount the File system..?
>
>My user is able to read/wirite to the files with no problems..
>
>sorry if thats alittle confuseing...
>  
>

Your understanding is correct.

If I chmod my $HOMEDIR to 777, then you can read/write
to it.  But, if I export it via /etc/exports (NFS), you can't
mount it unless you're root.  Expected behavior, seems
to me, in light of my experience with 'Nixes.

I don't know if the sysctl "vfs.usermount" would apply
in the case of NFS or not; it does for floppies and CDROM's,
I think.  You might try it; good luck!

Kevin Kinsey



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?430A772F.103>