Problems properly setting up /etc/exports



I've got a FBSD 6 machine built from a 6.2 PRERELEASE set of sources
that I need to use as an NFS server for some other similar machines.
If I specify the machines by host name, or IP address in /etc/exports,
I can mount the requisite directories from the test client.

However, I really need to be able to allow 2 whole 1/2 class C's
to mount these directories. My reading of the /etc/exports man page
leads me to believe that I should be able to use a line like this:

/usr/ports/distfiles maproot=root -network aaa.bbb.ccc.0 -mask 255.255.255.128

When I do this, and start mountd with the -d flag, I get:

ountd: getting export list
mountd: got line /usr/ports/distfiles maproot=root -network aaa.bbb.ccc.0 -mask
255.255.255.128mountd: making new ep fs=0x3e331e2f,0xe47d1981

But when I try to mount from a client n this network, it reports
premission denied.

I also tried putting a line like this in /etc/exports:

/usr/ports/distfiles maproot=root -network mine

and putting the following in /etc/networks:

mine aaa.bbb

But I still get the same error.

What am I doing wrong?


--
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Problems properly setting up /etc/exports
    ... If I specify the machines by host name, or IP address in /etc/exports, ... I can mount the requisite directories from the test client. ...
    (freebsd-questions)
  • Re: Problems properly setting up /etc/exports
    ... If I specify the machines by host name, or IP address in /etc/exports, ... I can mount the requisite directories from the test client. ...
    (freebsd-questions)
  • Summary: Gentoo Linux NFS problem
    ... was started on the Gentoo side before trying to mount the device. ... to a Gentoo Linux client. ... firewalls are disabled on both machines. ... Rpcinfo queries of the server report all is well. ...
    (SunManagers)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... root access to a box you don't need silly things like this to crash ... They can simply mount a filesystem with any number of SUID ... Thirdly, while I'm talking about desktop machines, many desktop Linux ...
    (FreeBSD-Security)
  • Re: NFS mount problem!
    ... I have just upgraded, via fresh install, a server to fedora 9 and none ... This is the output when I try to mount the share from one of the other machines: ... This it the same setup that I had with fedora 8 and all worked well. ...
    (Fedora)