When I login anew my umask is 002
. At least for a while. Then at some point, and I'm not sure when, it reverts to 000
. This is very inconvenient and I'm now constantly living in fear of dropping files and folders with strange permissions across my home directory.
The reversion to 000
can happen after minutes of use, or after days. A few weeks after I first installed ubuntu it happened quite a lot, then it cooled down, and just in the last few days this issue has reared its ugly head again.
I can set it back to 002
with $ umask 002
but this only works for the current shell (as expected).
Some more information:
- The tty at ctrl-alt-f2 has a umask of
002
even when my f7 login is at000
/etc/profile
says that umask is now handled by pam_umask/etc/login.defs
hasUMASK 022
andUSERGROUPS_ENAB yes
I'm running Ubuntu 13.10 with XMonad and (oh-my-)zsh.
In case this is useful, here's my /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb8 during installation
UUID=96f989e0-ee94-4bff-9663-3fa479a83ad4 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdb1 during installation
UUID=7682-B8AD /boot/efi vfat defaults 0 1
# swap was on /dev/sdb7 during installation
UUID=0d7d57af-9a31-481e-9da4-1032c94f57e9 none swap sw 0 0
Here is an abridged version of my crontab from crontab -l
* * * * * cd /home/miles/code/Checkin/ && ./node_modules/.bin/coffee ./client.coffee -n attercop -h secret1.com -p 8888
* * * * * cd /home/miles/code/Checkin/ && ./node_modules/.bin/coffee ./client.coffee -n attercop -h secret2.com -p 8888
client.coffee
is just a script that sends an http request.
And my root crontab from sudo crontab -l
reports no crontab for root
umask
value when mounting your$HOME
? Check/etc/fstab
. – terdon Mar 19 '14 at 01:18crontab -l
andsudo crontab -l
. – Braiam Mar 19 '14 at 01:37sudo auditctl -A auditctl exit,always -S umask
and look in/var/log/kern.log
for audit logs. – Gilles 'SO- stop being evil' Mar 19 '14 at 01:38./site build
and am surprised when those dirs have weird permissions. Then I typeumask
and the result is000
(when the issue has happened, I just logged out and in so it's002
for now.) – Miles Mar 19 '14 at 01:58autitd
package? I have 4 possibly relevant lines in/var/log/kern.log
which all saysetup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:8 nr_node_ids:1
– Miles Mar 19 '14 at 02:03bash -x -l -i -c 'exit' 2>&1 | grep umask
and look for any errantumask
's coming from a configuration file. – slm Mar 19 '14 at 02:13zsh
.zsh -x -l -i -c 'exit' 2>&1 | grep umask
. – slm Mar 19 '14 at 02:43umask
somewhere in your zsh configuration, and you'll find it by looking through your.zshrc
and other zsh files. – Gilles 'SO- stop being evil' Mar 19 '14 at 03:31