Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 1999 19:25:22 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        grios@ddsecurity.com.br (Gustavo V G C Rios)
Cc:        questions@FreeBSD.ORG
Subject:   Re: Can get NFS server working
Message-ID:  <199910302325.TAA63809@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <381B790D.53B0774@ddsecurity.com.br> from Gustavo V G C Rios at "Oct 30, 1999 09:02:37 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Gustavo V G C Rios wrote,
> I am trying to set a nfs server box, but i am totally confused about how
> to get it done under freebsd!
> 
> I read the /usr/local/share/doc/Howto/HTML/NFS-HOWTO_toc.html, but the
> syntax it proposes is only valid for linux system, so i could not have
> my nfs server box running.
> 
> This is my /etc/exports:
> 
> /usr/X11R6 -alldirs 192.168.0.1
> /var/tmp -rw 192.168.0.1
> 
> 
> Here is what i got in /var/log/messages:
> 
> Oct 30 21:00:51 etosha mountd[97381]: could not remount /usr/X11R6:
> Invalid argument
> Oct 30 21:00:51 etosha mountd[97381]: could not remount /usr/X11R6:
> Invalid argument
> Oct 30 21:00:51 etosha mountd[97381]: bad exports list line /usr/X11R6
> -alldirs 192.168.0.1
> Oct 30 21:00:51 etosha mountd[97381]: bad exports list line /usr/X11R6
> -alldirs 192.168.0.1
> Oct 30 21:00:51 etosha mountd[97381]: bad opt rw
> Oct 30 21:00:51 etosha mountd[97381]: bad opt rw
> Oct 30 21:00:51 etosha mountd[97381]: bad exports list line /var/tmp -rw
> Oct 30 21:00:51 etosha mountd[97381]: bad exports list line /var/tmp -rw
> 
> 
> Can anyone *PLEASE* explain me what was my mistaken ?
> 
> Thanks a lot for your time and cooperation.

The exports(5) page is subtle, to say the least.

OK, as for the first line,

  /usr/X11R6 -alldirs 192.168.0.1

This is why it is failing. When speaking of types of mount
specifications, the manpage says,

           "The second is to specify the pathname of the root of the filesys-
     tem followed by the -alldirs flag; this form allows the host(s) to mount
     at any point within the filesystem..."

Notice that you can only use the _root_ of a filesystem with the
-alldirs switch, subtle. If you have a typical installation, /usr is
the root of the filesystem where /usr/X11R6 lies. You can either,

  /usr -alldirs 192.168.0.1

And export everything in /usr, or

  /usr/X11R6/bin /usr/X11R6/lib [ etc. ..] 192.168.0.1

And list all of the subdirs in /usr/X11R6 explicitly (and on one
line!).

As for the second line,

  /var/tmp -rw 192.168.0.1

There simply is no '-rw' option. Mounts are read-write by default. You
must specify '-ro' to make them read-only.

Hope that helps.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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