Where is my umask being set to 0002?
Chris Green
cl at isbd.net
Wed Apr 13 08:56:08 UTC 2022
A long time ago, several years probably, I changed the default umask
setting on my [x]ubuntu systems from the default 0022 to 0002. At
least I *think* I changed it. Anyway, all my [x]ubuntu systems seem
to have the umask for all users set to 0002.
However all the umask settings I can see in the files in /etc are
0022, so where is umask getting set to 0002?
I'm not setting it in my .profile or .bashrc files and I have checked
by outputting the value of umask to a file at the start of these files
(and the system ones), it's always 0002 by the time these files are
executed:-
start of /etc/profile 0002
start of /etc/bash.bashrc 0002
start of .profile 0002
start of .bashrc 0002
I suspect I may have changed it (those years ago) so that apache2 runs
with umask 0002, thus it's probably early in system start-up, but I
just can't find where. Obviously I've tried all the usual places that
are given when one searches for "default umask ubuntu" and it isn't
any of them.
According to .profile:-
# the default umask is set in /etc/profile; for setting the umask
for ssh logins, install and configure the libpam-umask package.
However on my systems it's certainly not set in /etc/profile and my
umask is 0002 for all logins so it's not the ssh setting.
Can anyone suggest where it may be being changed?
--
Chris Green
More information about the ubuntu-users
mailing list