I have recently been given an account on a Linux server. This server is shared with different members of a research institution and the standard permissions allow other users to access my directories and files.

I have decided to create a folder (let's call it private) in my home and to change the permissions with chmod 700 ~/private. I have noticed that the permissions of new files created in private might allow others to access them. I am fairly new with chmod and I don't understand whether having set the permissions of private as above prevent others to view and access what is within this folder, regardless of the files permissions.

Shall I use a similar approach as in this question to set the permissions of all files within private or having set the permissions of this folder is already enough?


It's already enough. The directory access limitations take precedence over its content's permissions.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy