I'm trying to configure NFS
between two RHEL7 nodes:
first node:
[root@ip-10-164-175-246 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@ip-10-164-175-246 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.el7.x86_64
[root@ip-10-164-175-246 ~]# cat /etc/exports
/var/www/html/ ip-10-184-161-46.ec2.internal(rw)
[root@ip-10-164-175-246 ~]#
second node:
[root@ip-10-184-161-46 ~]# mount ip-10-164-175-246.ec2.internal:/var/www/html/ /mnt/
[root@ip-10-184-161-46 ~]# touch /mnt/$$
touch: cannot touch ‘/mnt/3326’: Permission denied
[root@ip-10-184-161-46 ~]#
Why can't I write anything to /mnt/
over NFS?
Does your export utilize
root_squash
? From the CentOS docs:You'll need to add the flag
no_root_squash
to disable this, as it's on by default.