I ran for following after su'ing into root:
grep -i "umask" /etc/* and grep -i "umask" ~/.* and found that there were umask entries in the following files /etc/profile ~/.bashrc I changed the umask entry in /etc/profile from 022 to 077 and commented out the umask entry in ~/.bashrc Because of the current bug, I added umask 002 to /etc/gdm/Xsession After restarted the system, I logged in as a standard user, created a file, checked the permissions and the permissions are set to -rw-rw-r-- What have I missed out? |
Nevermind, got it working by changing 002 to 077 in /etc/gdm/Xsession.
|
Quote:
For what you described umask should be 077 *everywhere* including the /etc/profile, /etc/login.defs, /etc/skel/.bashrc, /root/.bashrc, /etc/gdm/Xsession, etc. The less programs that can weasel around the umask the better. Someone else mentioned /etc/adduser.conf DIR MODE and it should be 700. etc... anywhere you can find to set it... set it. Quote:
|
Quote:
grep -i "umask" /etc/* will only look in the folder /etc/ and grep -i "umask" ~/.* will only look into my home folder. |
Quote:
Code:
grep -iRI "umask" /etc/* | grep -v "/etc/rc[0-9S].d" Most of the /etc/rcX.d stuff can be safely ignored also. |
All times are GMT -5. The time now is 07:51 AM. |