In my system I set the umask for the user root to 0077 and for the non-root users to 0027 (via /etc/profile). This is working for the normal terminal logins. But if I login as root and change user with su command like this:
su user
umask
0077
I get the 0077 umask instead of 0027. Is this normal behavior? how can I configure my umask 0027 setting for the su command to 0027?
My default shell for the non-root users is the dash not the bash