Cel,

I think that I should have included the misc@openbsd.org account in
my reply. Sorry for the mistake.

Greg



-----Original Message-----
From: Gregorio Arvilla
Sent: Friday, April 18, 2008 9:10 AM
To: 'Christopher Linn'
Subject: RE: Permission problems using NFS on OpenBSD 4.2

Cel,

Thank you for your reply.

Your suggestion worked, I modified the -network flag in the exports file
to the correct settings and was able to mount the directory.

Thank you very much.

Greg



-----Original Message-----
From: Christopher Linn [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 17, 2008 7:06 PM
To: Gregorio Arvilla
Cc: misc@openbsd.org
Subject: Re: Permission problems using NFS on OpenBSD 4.2

hi gregorio,

On Thu, Apr 17, 2008 at 04:00:19PM -0600, Gregorio Arvilla wrote:
> Hi There,
>
> I'm trying to use NFS on OpenBSD 4.2 but I'm getting permission
errors.
> Here are the contents of the exports file:
>
> # $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $ # # NFS
> exports Database # See exports(5) for more information.  Be very
> careful: misconfiguration # of this file can result in your
> filesystems being readable by the world.
> /public_nfs -alldirs -ro -network=10.0.0 -mask=255.255.255.0


as mentioned you have an incorrect -network=<address>, there should be 4
numbers and 3 dots.  do you see any complaints when starting the NFS
server?

also, is 10.0.0 really a typo that should read 10.10.1.0, as the NFS
client information below would suggest?  fix the exports file to reflect
the network it is NFS sharing to.  it looks like you are wanting to do
all this on the 10.10.1.0 255.255.255.0 network, is that correct?

cel


> Here are the contents of the rc.conf.local file:
>
> ntpd_flags=  # enabled during install
> nfs_server=YES
> portmap=YES
>
>
> And here are the contents of hosts file:
>
> # $OpenBSD: hosts,v 1.11 2002/09/26 23:35:51 krw Exp $ # # Host
> Database # # RFC 1918 specifies that these networks are "internal".
> # 10.0.0.0      10.255.255.255
> # 172.16.0.0    172.31.255.255
> # 192.168.0.0   192.168.255.255
> #
> ::1 localhost.epvgroup localhost
> 127.0.0.1 localhost.epvgroup localhost
> ::1 lappc2.epvgroup lappc2
> 127.0.0.1 lappc2.epvgroup lappc2
> 10.10.1.232 epv2.epvgroup.com epv2
>
> From the 10.10.1.232 machine I'm trying to mount the /public_nfs
> directory, here is the command and the output:
>
> [EMAIL PROTECTED] greg]# mount -t nfs 10.10.1.110:/public_nfs /home/greg/mnt
> mount: 10.10.1.110:/public_nfs failed, reason given by server:
> Permission denied
> [EMAIL PROTECTED] greg]#
>
>
> I'm wondering if you can tell me what settings do I have to modify to
> give permissions to mount the directory.
>
> Thank You
>
> Greg

--
Christopher Linn <celinn at mtu.edu>  | By no means shall either the CEC
System Administrator II               | or MTU be held in any way liable
  Center for Experimental Computation | for any opinions or conjecture I
    Michigan Technological University | hold to or imply to hold herein.

Reply via email to