On 8/24/21 11:03 AM, Samuel Sieb wrote:
umask isn't an environment variable. It's a kernel setting
for the
process. Why are you using "su" anyway instead of "sudo"? (I
don't
know if that will change anything regarding the umask, but it's better
to not have a root password.)
I can't speak for anybody else, but I use su because I know the root
password and don't see any reason not to use it when appropriate. And,
back when I first started learning Linux, sudo wasn't automatically
provided and by the time it was, my finger macros were all set to use su.