Changing default umask
Hi I'm trying to set the default umask in several different ways on ubuntu 11.04
"There are no umask entries in /etc/init.d/rcS" Can somebody please tell me what to put in /etc/init.d/rcS to set the umask to 077? "There is no default umask settings for user login shells in /etc/login.defs" Can somebody please tell me what to put in /etc/login.defs to set the default umask to 077? And can somebody please tell me how to set the default umask to 077 in /etc/bashrc and /etc/profile I want to set it in both to be safe, but I don't know what to put in the files to set the default to 077. Any help with this would be appreciated! |
Do you have a file /etc/login.defs in Ubuntu? If so, you'll find it in there. It will (or should) look like
Code:
# Default initial "umask" value. While I'm thinking about it, you could simply set it in /etc/profile with Code:
export UMASK=077 If that doesn't work, try (as root or sudo) to find the actual setting Code:
cd /etc |
All times are GMT -5. The time now is 10:26 PM. |