Re: strange nfs problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-02 at 13:29 +1000, Neil Dugan wrote:
> Hi,
> 
> I have just installed FC4 (minimum install) on a computer I intend to
> setup as a server.
> 
> When I went to enable the NFS, I can't get it to work properly.
> The important error message is :=
> 
> # /etc/init.d/nfs start
> # tail /var/log/messages
> Sep  2 13:18:40 mini-cl exportfs[2524]: can't open /etc/exports for reading
> Sep  2 13:18:40 mini-cl kernel: Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx).
> Sep  2 13:18:40 mini-cl kernel: SELinux: initialized (dev nfsd, type nfsd), uses genfs_contexts
> Sep  2 13:18:40 mini-cl rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
> 
> And on the client use
> # mount mini-cl:/mnt/storage storage
> mount: mini-cl:/mnt/storage failed, reason given by server: Permission denied
> 
> # exportfs -a
> # tail /var/log/messages
> Sep  2 13:21:30 mini-cl exportfs[2592]: can't open /etc/exports for reading
> 
> # ls -l /etc/exports
> -rw-r--r--  1 root root 27 Sep  2 11:46 /etc/exports
> 
> # cat /etc/exports
> /mnt/storage 192.168.0.0/16(rw)
> 
> # cat /etc/hosts.deny
> portmap:ALL
> 
> # cat /etc/hosts.allow
> portmap: 192.168.
> 
> If I use exportfs to bypass the /etc/exports file with
> # exportfs -o rw 192.168.0.0/16:/mnt/storage
> 
> and on the client use
> # mount mini-cl:/mnt/storage storage
> 
> Every thing works fine.
> 
> Any help appreciated.

Try checking the permissions on /etc/exports:

$ ls -lZd / /etc /etc/exports

I get:
drwxr-xr-x  root     root     system_u:object_r:root_t         /
drwxr-xr-x  root     root     system_u:object_r:etc_t          /etc
-rw-r--r--  root     root
system_u:object_r:exports_t      /etc/exports

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux