Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which directories and files in UNIX-based file systems have default user permissions set? For example, a user's home directory can't be seen by other users on a system without his permission. What other directories have their permissions set in this way when a user account is created? /etc? /bin? Others?

share|improve this question

migrated from Oct 3 '10 at 8:11

This question came from our site for professional and enthusiast programmers.

This is not a programming question. Voted to move to – wallyk Oct 3 '10 at 6:03
Could you be more specific? Also are you aware of the difference between user/group/other permissions? – Roman A. Taycher Oct 3 '10 at 6:04
Yes, the directories that user has permission to access when he is logged in . For /bin directory user can't add new files he can just read them .So can you give me list of all such top-level directories that have such permission. – Mishthi Oct 3 '10 at 6:19

This depends on the distro but generally regular users only have write access to files under their home directory along with a couple folders for temporary files. What they have read access varies even more. If you wanted to change the default permissions of new users' home directories, you'd probably modify /etc/skel on most systems.

share|improve this answer
you can make files inside of /tmp – Roman A. Taycher Oct 3 '10 at 6:08
Yes, I was lumping that in with "a couple folders for temporary files", as the exact path can vary. – Brad Mace Oct 3 '10 at 6:11

Many system files have read and or execute permissions for other users(users which are not the user owning the file-usually root for system files, and are not in the same group as the user who owns the file (such as the root group).

share|improve this answer

Try man hier to find out the directory structure for your distribution.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.