On 04/13/2018 12:34 PM, Bob Goodwin wrote:
I am attempting to set up an NFS server on a new Fedora 27 computer I
have assembled using instructions I found, "Fedora
Administration_Guide_Draft/NFS" and I am having a problem accessing it.
Sadly, that document is both incomplete and badly out of date.
$ cat /etc/exports
/var/ftp/pub 192.168.1.0/255.255.255.0(ro)
/home/public 192.168.1.0/255.255.255.0(rw)
var/ftp/pub 192.168.54.0/255.255.255.0(ro,sync,no_subtree_check)
/var/ftp/pub
192.168.54.0/255.255.255.0(ro,sync,no_wdelay,no_subtree_check,nohide)
Several things to note:
1: NFSv4 is the default option on contemporary Fedora systems. In
NFSv4, the first export must be a "root" for all other exports. That is,
if your first export is /var/ftp/pub, then all subsequent exports *must*
be a subdirectory of /var/ftp/pub. Typically, /export is the first
export listed, and subdirectories follow.
2: The third line lacks a leading "/" and will cause exportfs to print
an error. I'm mostly sure that line is simply disregarded.
3: It doesn't make sense to export one directory twice, to the same set
of clients. If you fix the missing leading "/" on the third line, I'm
mostly sure the fourth will then be disregarded.
You probably want:
/export 192.168.1.0/255.255.255.0(ro,sync)
/export/var/ftp/pub 192.168.1.0/255.255.255.0(ro,sync)
/export/home/public 192.168.1.0/255.255.255.0(rw,sync)
/export 192.168.54.0/255.255.255.0(ro,sync)
/export/var/ftp/pub
192.168.54.0/255.255.255.0(ro,sync,no_wdelay,no_subtree_check,nohide)
Then from the client I get a refusal:
# mount 192.168.1.86:/home/public /mnt/test/
mount.nfs: Connection refused
Using NFSv4, the client must be able to reach TCP port 2049. You can
verify that this is or is not the case using telnet at the client. Make
sure the service is running, and port 2049 is open on the server. (Use
"ss -t -l -n" on the server and look for port 2049.) Telnet to that
port from the client.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx