Re: NFS server setup -

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

 



On 04/13/2018 12:39 PM, Danny Horne via users wrote:
> On 13/04/18 20:34, 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.
>>
>> $ 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)
>>
>> Then from the client I get a refusal:
>>
>> # mount 192.168.1.86:/home/public  /mnt/test/
>> mount.nfs: Connection refused
>>
>> There is an ethernet path between them on my lan, ssh works from each
>> computer to the other ...
>>
>> Perhaps a problem with bind, I don't know how to troubleshoot this,
>> would appreciate suggestions.
>>
>> Bob
>>
> Sorry, meant to say firewall ports

By default F27 uses NFSv4. The access is far more restrictive. If you're
NFS mounting a filesystem as a normal user on the client, then you have
to make sure that user has the same UID and GID on the server and has
access to that exported directory.

If you're mounting it as root on the client (as seems to be true by the
"#" in the example command), make sure you add "no_root_squash" to the
export at the server:

	/home/public	192.168.1.0/24(rw,no_root_squash)

Otherwise the server will try to demote the root user down to the
anonymous user, who probably doesn't have R/W access to /home/public
(or whatever export you've specified).

Make sense?
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-    They say when you play a Microsoft CD backwards, you'll hear    -
-   Satanic messages, but if you play it forwards, it will install   -
-           Windows...which means Satan is in your system.           -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux