Why nfs mounts are allowed that aren't in /etc/exports?
Tim Judd
tajudd at gmail.com
Fri Apr 23 00:52:10 UTC 2010
On 4/22/10, Yuri <yuri at rawbw.com> wrote:
> I only have this one line exports:
> /usr/diskless.sparc64 -alldirs -maproot=root -network=192.168.0
> -mask=255.255.255.0
>
> But somhow all mounts are succeed: /home, usr/ports, etc.
>
> Isn't exports supposed to limit what can be mounted?
>
> Yuri
Because you didn't specify in this email where /home is mounted, I can
only guess /home is actually a symlink to /usr/home
Because /usr/home is under the /usr mountpoint and you specified
'-alldirs' in the exports, any dir under /usr can be mounted.
NFS exports work ONLY on mountpoints, they do not work under child
directories unless -alldirs is specified and then any dir under that
mountpoint can be mounted.
Please check your system configuration and return to us.
--Tim
More information about the freebsd-questions
mailing list