7

I have somehow inadvertently altered the file permissions of my home directory. I wish to change them back to the default permissions. However, I can´t seem to find out what the default is.

Currently, I have set them to:

drwx------ 

What should they be? Does it change depending on if you have your home folder encrypted?

1
  • 7
    755 by default on unencrypted and 700 for encrypted. – duffydack Nov 1 '11 at 16:39
6

Mine says

root45@Ubuntu:~$ ls -dl
drwxr-xr-x 31 root45 root45 4096 2011-10-31 14:06 .
1

I have always thought it is easier to deal numerically rather than alphabetically. An 'R' equates to 4, an 'W' to 2 and e(X)ecute to 1. The standard permissions in a directory equate to 755, which evaluates to read, write, execute for the owner (4 + 2 + 1), read and execute for the group (4 + 1) and read and execute for other. There are other permissions that might be assigned such as the sticky bit etc, but I won't go into them. To set the permissions you could just use a chmod 755 * in the directory. If there are hidden files, those starting with a period, you could try chmod 755 .*

Alan

3
  • 1
    This doesn't answer the question. – Eric Carvalho Sep 19 '13 at 17:36
  • 1
    I disagree. It does answer the question even if he beat around the bush to get to the point. – RolandiXor Sep 19 '13 at 20:15
  • It addresses what the standard permissions are, but not what they should be, nor whether they should be different depending on whether a user's home directory is encrypted. – inquiryqueue Apr 22 '15 at 18:48

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.