site  contact  subhomenews

Mysterious inaccessible folder

August 31, 2023 — BarryK

Posting about this here, in case anyone else stumbles upon it and wonders what is going on.

Forum member caramel reported this:

ls /home/firefox/.cache/doc
ls: impossible d'accéder à '/home/firefox/.cache/doc': Permission denied

See forum post:

I stumbled upon why that is happening. Reproducing my reply from the forum:

Like you, I was immensely puzzled.
I see Chromium also creates /home/chromium/.cache/doc, with the same problem.

But then I read this:

The document portal is a fuse mount, so it is denied access to by any uid other than the owning uid, including root. So, I expect the regular /run/user/1000/doc to be inaccessible by root.

So, did this:

# login -f firefox
# whoami
# ls /home/firefox/.cache/doc

An extra note: That path /home/firefox/.cache does not get saved when you choose to save the session. This is because it can get rather big. For anyone interested in how that exclusion is achieved, look at /etc/rc.d/rw-merge, line 122.    

Tags: easy