Link to home
Start Free TrialLog in
Avatar of brendan-amex
brendan-amex

asked on

Bad NFS Permissions on a Share - CentOS 6.2

I created an NFS share on CentOS 6.2 and for the most part it works great. I share a file out from ServerA to ServerB and I can view them on both. The only problem is that on ServerB, the permissions are screwed up and the file is read-only, even if I create the file on ServerB. Here is what I see when I run ls -al on the share:

ServerB:
-rw-r--r--.  1 4294967294 4294967294    7 Sep 11 07:41 test2.txt
-rw-r--r--.  1 4294967294 4294967294    7 Sep 11 07:56 test3.txt
-rw-r--r--.  1 4294967294 4294967294    7 Sep 11 07:49 test.html

ServerA:
-rw-r--r--.  1 nfsnobody nfsnobody    7 Sep 11 07:41 test2.txt
-rw-r--r--.  1 nfsnobody nfsnobody    7 Sep 11 07:56 test3.txt
-rw-r--r--.  1 nfsnobody nfsnobody    7 Sep 11 07:49 test.html


Any help is greatly appreciated!

Also - my etc/exports file shows "/var/share *(rw,sync,all_squash)" and I restarted NFS service afterwards.
ASKER CERTIFIED SOLUTION
Avatar of jhheider
jhheider
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brendan-amex
brendan-amex

ASKER

Thank you for your post. So I got the permissions to look correct with changing the Domain in the config file /etc/idmapd.conf, but I still get permission denied when trying to edit a file on ServerA that was created on ServerB. Am I not supossed to be able to edit any files inside the share on a different server?
It really does depend on the settings. What does

mount

Open in new window


show on each server?
Mount on Server that's shared out:
(nothing regarding the share)

Mount on client server:
server.domain:/var/shared on /var/shared type nfs (rw,hard,vers=4,addr=192.168.1.112,clientaddr=192.168.1.113)
Nothing needs to be mounted from the server to the client, right? Only the client to the server?