In my user account I set the umask to be 022 with my .bashrc, but I want root to use a umask of 077 no matter how I become root (e.g., logging in directly as root on a tty or using sudo or su). If I login to a tty as root, I get 077, so it is fine. For sudo in /etc/sudoers I have set
Hi folks; I would like to set the umask for a specific user different to all other users. I need this to apply to all files created by the user, no matter how - i.e. not only through a shell login. Is there any suitable way to do this? TIA for any help.
Hi guysThis is probably not what you expect to hear about umasks... I have set it in /etc/profile: ognyan@xxxlinux : ~ >grep umask /etc/profile
#Set our umask
umask 002If I log on via ssh, my umask is 0002. I can start a vnc server and a konsole inside, which has umask 0002. So far so good...I also have a vnc server running as a service.