Re: wierd document under /run/user/1000 directory
On Wed, Aug 23, 2023 at 01:06:05PM -0700, Gary L. Roach wrote:
> drwxr-xr-x 2 gary gary 120 Aug 20 10:19 akonadi
> drwx------ 2 gary gary 60 Aug 20 10:19 at-spi
> srw-rw-rw- 1 gary gary 0 Aug 20 10:18 bus
> drwx------ 3 gary gary 60 Aug 20 10:18 dbus-1
> drwx------ 2 gary gary 60 Aug 20 10:18 dconf
> *d????????? ? ? ? ? ? doc*
This comes up pretty frequently. The issue is, you're attempting to
view the contents of that directory *as the wrong user*.
If you showed us your shell prompt and the command you used, it would
be much more apparent.
unicorn:~$ ls -l /run/user/1000
total 0
drwx------ 2 greg greg 60 Aug 11 07:35 at-spi/
srw-rw-rw- 1 greg greg 0 Aug 11 07:33 bus=
drwx------ 3 greg greg 60 Aug 11 07:33 dbus-1/
drwx------ 2 greg greg 60 Aug 11 07:35 dconf/
dr-x------ 2 greg greg 0 Dec 31 1969 doc/
drwx------ 2 greg greg 140 Aug 11 07:33 gnupg/
srw-rw-rw- 1 greg greg 0 Aug 11 07:33 pipewire-0=
-rw-r----- 1 greg greg 0 Aug 11 07:33 pipewire-0.lock
drwx------ 2 greg greg 80 Aug 11 07:33 pulse/
drwxr-xr-x 5 greg greg 140 Aug 11 07:33 systemd/
See? All is well when *I* look at it. But *root* cannot see it:
unicorn:~$ sudo ls -l /run/user/1000
[sudo] password for greg:
ls: cannot access '/run/user/1000/doc': Permission denied
total 0
drwx------ 2 greg greg 60 Aug 11 07:35 at-spi
srw-rw-rw- 1 greg greg 0 Aug 11 07:33 bus
drwx------ 3 greg greg 60 Aug 11 07:33 dbus-1
drwx------ 2 greg greg 60 Aug 11 07:35 dconf
d????????? ? ? ? ? ? doc
drwx------ 2 greg greg 140 Aug 11 07:33 gnupg
srw-rw-rw- 1 greg greg 0 Aug 11 07:33 pipewire-0
-rw-r----- 1 greg greg 0 Aug 11 07:33 pipewire-0.lock
drwx------ 2 greg greg 80 Aug 11 07:33 pulse
drwxr-xr-x 5 greg greg 140 Aug 11 07:33 systemd
This is fine, because root has no business poking around in my private
stuff.
So, this leads to the question: what are you trying to do? You don't
back up the /run directory because it's ephemeral. Just leave it
alone.
Reply to: