Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 13:34:46 -0500
From:      John Nielsen <lists@jnielsen.net>
To:        arlogeek@lonetree.com
Cc:        freebsd-stable@freebsd.org
Subject:   Re: newbie question about NFS
Message-ID:  <20080130133446.ahbk7nt68sk0ccs8@newwebmail.jnielsen.net>
In-Reply-To: <200801301019.26194.arlogeek@lonetree.com>
References:  <200801301019.26194.arlogeek@lonetree.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Read the exports(5) manpage. Its format is different on FreeBSD than it 
is on Linux. (rw) isn't valid.

Pay particular attention to the section about "maproot". "In the 
absence of -maproot and -mapall options, remote accesses by root will 
result in using a credential of -2:-2." So if you mounted the directory 
as root on the client side then you were given no permissions. Either 
add a "-maproot=root" flag to your exports line (insecure) or change 
the ownership on the server to be a different user and mount as that 
user on the client.

JN

Quoting geek <arlogeek@lonetree.com>:

> I am using FreeBSD 6.2.  I am trying to export a directory so that another
> machine can read and write to it.
>
> With an /etc/exports file that says:
>
> /Data 192.168.1.20(rw)
>
> I get an empty directory on the client machine.
>
> I know that there are files in the directory.  They show when I list the
> contents on the FreeBSD machine.
>
> If I leave off the (rw), then the contents of the directory are visible.
>
> But the documents are read only.
>
> What am I doing wrong here?
>
> Thanks to all for any help.
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>
>





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