Monday, August 14, 2017

No such file or directory while accessing NFS shared directory -- Cent OS 7


1) When trying to access NFS shared directory which are already exported fine, you get no such file or directory then check the firewall is enabled or not. In my case firewall is enabled.

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28

]# cat /etc/sysconfig/selinux | grep -i selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing -----
# SELINUXTYPE= can take one of three two values:
SELINUXTYPE=targeted

2) # cat /etc/sysconfig/selinux | grep -i selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled ----

3) Now reboot the server

# reboot








No comments:

Post a Comment