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@monad.swb.de). 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.
Regards Neil.
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@monad.swb.de). 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.
On Fri, 2005-09-02 at 07:26 +0100, Paul Howarth wrote:
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.
Hi Paul,
# ls -lZd / /etc /etc/exports 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 root:object_r:etc_runtime_t /etc/exports
I don't know what this means, and I don't think it matters. I noticed that there was a new 'nfs-utils' in the update listing. After doing the update everything worked. I can only assume with this that the 'nfs- utils' I got with my update (after the initial install) of a few days ago had a bug in it somewhere.
As the NFS seems to be working now, thanks for having a look.
Regards Neil.