List Info

Thread: Problems properly setting up /etc/exports




Problems properly setting up /etc/exports
user name
2006-09-30 18:39:32
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-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Problems properly setting up /etc/exports
user name
2006-09-30 21:21:23
On Saturday 30 September 2006 13:39, stan wrote:
> 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?

Try this line in /etc/exports: 
/usr /usr/ports /usr/ports/distfiles -maproot=root 
-network aaa.bbb.ccc -mask 255.255.255.128

Do you have something like this in /etc/rc.conf:
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"

That should help you.

Don
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Problems properly setting up /etc/exports
user name
2006-09-30 22:00:56
On Sat, Sep 30, 2006 at 04:21:23PM -0500, Donald J. O'Neill
wrote:
> On Saturday 30 September 2006 13:39, stan wrote:
> > 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?
> 
> Try this line in /etc/exports: 
> /usr /usr/ports /usr/ports/distfiles -maproot=root 
> -network aaa.bbb.ccc -mask 255.255.255.128
> 
> Do you have something like this in /etc/rc.conf:
> rpcbind_enable="YES"
> nfs_server_enable="YES"
> mountd_flags="-r"
> 
Thanks.

Turns out I needed a ":" after the maproot clause.

-- 
Unix is very simple, but it takes a genius to understand the
simplicity.
(Dennis Ritchie)
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )