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
Forum Moderator
Posts: 29120
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 1124
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

Return to “CentOS 6 - Security Support”