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?

link|improve this question

44% accept rate
2  
755 by default on unencrypted and 700 for encrypted. – duffydack Nov 1 '11 at 16:39
feedback

3 Answers

up vote 2 down vote accepted

Mine says

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

/home direcotry 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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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