When I do a find
or du
or something in ~/.cache
I get an error:
$ ls ~/.cache/gnome-control-center
ls: cannot open directory /home/user1/.cache/gnome-control-center: Permission denied
It has weird permissions, which prevents the owner from reading or navigating into the directory (but the user's group can, if that were shared):
$ ls -ld ~/.cache/gnome-control-center
d-w-r-xr-T. 2 user1 user1 4096 Sep 30 16:51 /home/user1/.cache/gnome-control-center
That starts to look like a dropbox - write-only - but it's inconsistently applied such that 'group' and 'other' see it read-only and not write-only. Say (in the case for older corporate environments) you have a default group of user
, then (because denial takes precedence, and permissions are read left-to-right), anyone could read that directory except the owner. And yet, they can't because the parent .cache
is only readable & navigable by the owner.
I confirmed this happening to others. I guess I'm asking two questions:
- Is there a documented reason for this permissions tomfoolery?
- What possible reason is there for locking out the owner from a directory stored in their own homedir?