Comment 0 for bug 204577

Revision history for this message
ubuntu_demon (ubuntu-demon) wrote : The default umask should be set to 077. XDG_PUBLICSHARE_DIR should have umask 022

Your homedir should be private but there should be a special "public" readable folder where you can put files you want to share with other users of the same machine.

RATIONALE :
* the files in your home dir should not be read by others unless you give others permission to do so (privacy and security issue)
* with this solution people have an easy way of giving others permission to read their files

IMPLEMENTATION DETAILS :

The default umask should be set to 077 (in /etc/profile)
The default umask for XDG_PUBLICSHARE_DIR should be set to 022

XDG_PUBLICSHARE_DIR should be chmodded to 755 to ensure everybody can read the contents of this folder.

XDG_PUBLICSHARE_DIR is defined in ~/.config/user-dirs.dirs and is set to $HOME/Public by default.