NFS shared directory permission (rhel6)

Frantisek Hanzlik franta at hanzlici.cz
Mon Aug 1 08:30:09 UTC 2011


Jatin K wrote:
> Dear all
> 
> what should be the permission of NFS shared directory on RHEL6 ???
> 
> I've shared a directory on rhel 6  ...following are the configuration done
> 
> created a directory /office
> 
> --/etc/exports----
> /office *.officebox.local(rw,sync)
> 
> 
> 
> ---ls -ld /office
> 
> drwxr-xr-x. 3 root root 4096 Aug  1 13:44 /office
> 
> 
> problem :-  all the clients in officebox.local can mount the nfs shared 
> directory on localsystem  but it always mounted as read-only  ...even 
> though /etc/exports configured with read and write
> 
> I'm able to solve this problem by changing permission and set it to 777  
> ..... but this is not desirable
> 
> is it compulsory to set permission to 777  ... what is the batter 
> solution ?????

Probably better is set permission to (2)770 (or (2)771) and change
directory group to group of accessing users.
You can consider to use ACL too.

Franta Hanzlik


More information about the users mailing list