Understanding permissions in Linux
by elsmandino from LinuxQuestions.org on (#50NP4)
Hello.
Apologies that this subject has been done to death, but it is a particular thing that seems to prevent me from really getting on with Linux.
Can I just check that the following is true, please:
Say I have the following directory on my server (192.168.1.40)
/NFSShare/
and this directory has its own permissions - e.g. 775.
I then share the folder with the following in /etc/exports/
/NFSshare/ 192.168.1.0/24(rw,sync,no_root_squash)
Does that mean that if any client PC mounts the NFS share, the NFS share permissions apply first and then the permissions of the folder itself?
For example, if the folder has a permission of 777 (so anybody can write to it), but it is shared via NFS with (ro, sync,no_root_squash), does that mean that a client is still prevented to from writing to it?


Apologies that this subject has been done to death, but it is a particular thing that seems to prevent me from really getting on with Linux.
Can I just check that the following is true, please:
Say I have the following directory on my server (192.168.1.40)
/NFSShare/
and this directory has its own permissions - e.g. 775.
I then share the folder with the following in /etc/exports/
/NFSshare/ 192.168.1.0/24(rw,sync,no_root_squash)
Does that mean that if any client PC mounts the NFS share, the NFS share permissions apply first and then the permissions of the folder itself?
For example, if the folder has a permission of 777 (so anybody can write to it), but it is shared via NFS with (ro, sync,no_root_squash), does that mean that a client is still prevented to from writing to it?