Redhat – chmod 777 the NFS folder when I share

nfsredhat

Under Redhat, if I export a folder as an NFS mount, does the folder have to have RW for users/groups/others? Right now /storage/software is -rwxr-xr-x root/root

i.e. /etc/exportfs

/storage/software *(rw,sync)

On my client, I can mount but I can't write. I'm using a regular user and NOT root.
I think "no_root_squash" fixes it but I really don't want that. Then again, nor do I want to have to chmod 777 the folder on the server.

Best Answer

NFS uses the filesystem permissions across systems.

A reasonable solution would to use a group that all users were members of and set the SGID bit on the directory as well. Public writable is for /tmp. If you must, at least set the sticky bit.

Related Topic