Why umask 0002?

asked 2013-12-29 13:29:04 +0300

epsilonijk gravatar image

updated 2014-01-15 22:48:01 +0300

I am wondering why the default umask is 0002. When I just created a ~/.ssh/authorized_keys file, it was created -rw-rw-r-- such that sshd ignored it out of reasonable security considerations.

edit retag flag offensive close delete


You can change the file rights even uncommnent the /etc/ssh/sshd_conf (AuthorizedKeysFile), you will be promted for the user password... No idea for the reason,...

manu007 ( 2013-12-29 13:59:55 +0300 )edit

that's why I use ssh-copy-id to push my keys to the device, that handles the permissions of ~/.ssh/authorized_keys

Kontio ( 2013-12-29 14:29:15 +0300 )edit

My problem was with the folder itself, changed to 600 and now it work perfectly, many thanks.

manu007 ( 2013-12-29 14:56:15 +0300 )edit