Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
This is not a programming question. Voted to move to superuser.com. –  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 eg.in /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
add comment

migrated from stackoverflow.com Oct 3 '10 at 8:11

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

3 Answers

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
1  
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
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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