> There is no single answer to that question.
> Permitions on home directories should normally be one of 700, 750, 755.
> The users umask should be one of 077, 027, 022. The RedHat default of 002
> only makes sense when you create singleuser groups, and BTW will give you
> trouble when trying to set up an authorized_keys file for ssh.
Agreed; I hate this RH default approach.
Quote:> Personally I prefer a umask of 077 and then change permitions whenever
> someone needs more access. The safest for a homedirectory probably is
> 700, but if anybody else need access to any files inside you will need to
> change it.
chmod -R og= ~
chmod 711 ~ ~/bin
chmod -R og+rX ~/public_html ~/.plan ~/.forward ~/bin/*
So much so, I've even got
| zsh, potato 2:46PM piglet % alias perm
| perm='chmod -R og+rX '
to allow me to undo the effects of the umask with slightly fewer key-
Never had any permission problems yet ;8)
Through the paths of the redeemed |http://spodzone.org.uk/