Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
4  
755 by default on unencrypted and 700 for encrypted. –  duffydack Nov 1 '11 at 16:39

3 Answers 3

up vote 4 down vote accepted

Mine says

root45@Ubuntu:~$ ls -dl
drwxr-xr-x 31 root45 root45 4096 2011-10-31 14:06 .
share|improve this answer

/home directory is owned by default by root:root.

$ ls -ld /home
drwxr-xr-x 5 root root 4096 2011-10-26 06:47 /home

But individual user folder by the respective user, example:

$ ls -ld /home/cheesykunna
drwxr-xrwx 45 cheesykunna cheesykunna 4096 2011-11-01 20:58 /home/cheesykunna
share|improve this answer

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

share|improve this answer
1  
This doesn't answer the question. –  Eric Carvalho Sep 19 '13 at 17:36
    
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

Your Answer

 
discard

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

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