Do I have to chmod 777 my NFS folder when I share?
Solution 1
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.
Solution 2
You should have the same user IDs and group IDs on both servers. At least those that will use the NFS folder.
Related videos on Youtube
sdot257
Updated on September 17, 2022Comments
-
sdot257 almost 2 years
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.
-
sdot257 about 14 yearsthen it looks like I'll have to chmod 777 the folder then. It's just a folder for the developers to store all their files.
-
sdot257 about 14 yearsNot gonna happen. My users can mount from their workstations or from servers.
-
Philip about 14 years@luckytaxi: This is why planning network security is so important. I highly recommend conisdering retooling your network before the company grows more, and the problems become much worse. I do understand what this is asking; but it's pain now, or more later.