-   Linux - Security (
-   -   Set default umask for ssh as non-root (

WorkingClassHero 02-19-2008 08:04 AM

Set default umask for ssh as non-root
I want to log onto another computer with ssh. There I want to have umask 077. I do not have root permission. For my bash it is possible to set umask 077 into the .bashrc file in my home directory (, as non-root). Can I change the default umask for ssh logins aswell as non root? Which file do I have to edit in which way to do this?
Thanks in advance!

acid_kewpie 02-19-2008 08:42 AM

ssh has nothing to do with this, it's the account which has umask details and ssh is only one of many ways to access those accounts. why would you want different access rights from a remote connection compared to sitting infront of the machine? you should actualy use .bash_profile, not .bashrc for that, and if you do you'll see it covers all bash logins.

WorkingClassHero 02-19-2008 11:09 AM

Putting that into .bash_profile worked :-)

All times are GMT -5. The time now is 09:02 PM.