Home directory access rights are set to 755

Asked by dfszb

On my system, ${HOME} is created , for all users, with access rights 755 - and the same goes for files created by various apps in the home directory. Suppose that I write a small text file and save it under my home dir, it looks like it is readable by anybody.
OK, this can be changed very simply, however, is it OK to have 755 as the default setting for home directory rights?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Munzir Taha (منذر طه)
Solved:
Last query:
Last reply:
Revision history for this message
Munzir Taha (منذر طه) (munzirtaha) said :
#1

The default settings depends on your needs. It's safe to set your home directory to have a 750 if you you like.

Revision history for this message
Best Munzir Taha (منذر طه) (munzirtaha) said :
#2

If you are afraid to do things manually, just do
sudo dpkg-reconfigure adduser

and it would explain to you that ...

By default, users' home directories are readable by all users on the system. If you want to increase security and privacy, you might want home directories to be readable only for their owners. But if in doubt, leave this option enabled.
This will only affect home directories of users added from now on with the adduser command.
Do you want system-wide readable home directories?

Answer No, and that's all.

Revision history for this message
dfszb (dnotob) said :
#3

:) I already changed the rights manually, I was just surprised to see the default settings in the first place.
Anyway, thank you for the additional information!