while accessing export file permission denied

Support for security such as Firewalls and securing linux
Post Reply
shakeer
Posts: 35
Joined: 2014/11/29 20:34:58

while accessing export file permission denied

Post by shakeer » 2016/02/10 18:55:46

Hi everyone,

I would like to inform you that i have installed NFS server successfully. although when I'm trying to access shared directory in exports file it's saying permission denied can anyone explain to me how would i set proper permission to exports file. would be appreciate your kindness

Thanks in advance.

For sever I'm using CentOS 6.5 Client machine CentOS 7.0 minimal.

:) :) :)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: while accessing export file permission denied

Post by gerald_clark » 2016/02/11 12:11:29

6.5 is years out of support and has many exploits.
The current supported version is 6.7.
You need to yum update immediately.

Permissions on files are user and group based.
Your users on both machines need to map to the same uids.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: while accessing export file permission denied

Post by TrevorH » 2016/02/11 13:23:07

Also the firewall ports need to be set in /etc/sysconfig/nfs on the server and the correct ports opened in the firewall to allow the traffic through. You also need to make sure that /etc/exports allows the access.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: while accessing export file permission denied

Post by Whoever » 2016/02/12 00:55:44

shakeer wrote:Hi everyone,

I would like to inform you that i have installed NFS server successfully. although when I'm trying to access shared directory in exports file it's saying permission denied can anyone explain to me how would i set proper permission to exports file. would be appreciate your kindness

Thanks in advance.

For sever I'm using CentOS 6.5 Client machine CentOS 7.0 minimal.

:) :) :)

Check the settings for the idmapper on server and client in /etc/idmapd.conf. The "Domain" must match (and not be "nobody").
http://www.softpanorama.org/Net/Applica ... body.shtml

Post Reply