I have logged in with root user
My systems Umask value was 0022.
So i decided to change it to 0077 and observe the system for some time.
so i edited /etc/profile
and added
at the end of file
rebooted the machine.
But the umask is still showing as 0022
After the first attempt is failed I tried changing it using
below command.
Validated it.
rebooted the machine
but the umask is still showing 0022
So at last i have to modify /etc/bashrc file and add umask 077 at the end of the file.
How would i make it in general for all(Even for non-root user) and not just for bash prompt.
What could be the issue?