NFS question...

Kevin Kinsey kdk at daleco.biz
Tue Aug 23 01:09:30 GMT 2005


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


More information about the freebsd-questions mailing list