Umask change.
I have logged in with root user
My systems Umask value was 0022. Code:
#umask so i edited /etc/profile and added Code:
umask 077 rebooted the machine. But the umask is still showing as 0022 After the first attempt is failed I tried changing it using below command. Code:
#umask 077 Code:
# umask 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? |
Changes in /etc/profile will affect the new users to be created. For the created users you have to manually edit their .bashrc file in their home directory.
|
You can make change in /etc/bashrc
|
Quote:
How would i make it in general. |
I feel for this you need to edit /etc/profile and add "umask 077" which you have already done.
Also, make sure your /etc/bashrc does not have any "umask" entry. Could you please paste outputs of below commands. Code:
grep -v ^# umask /etc/profile |
All times are GMT -5. The time now is 09:19 PM. |