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
> 
> 
> 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.

Be root. iirc kern.usermount doesn't work for nfs.

-0-
-- 
Truth will be out this morning.  (Which may really mess things up.)

Reply via email to