0

When I run sudo find / >/dev/null I get this output:

find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied

With ls -l, I see the permissions are set as follow:

dr-x------ 2 adrian adrian   0 ene  1  1970 doc
dr-x------ 2 adrian adrian   0 nov 24 19:13 gvfs

In my home directory, I run this to see if the problem is with permissions:

mkdir X
touch X/Y
chmod a=,u=rx X

But the find command correctly reports the contents of the X directory:

$ sudo find X
X
X/Y

Why is it that I can't read the contents of these 2 folders in the /run/user/1000 directory? Funnily enough, running find without sudo works and gives me the contents of /run/user/1000/doc and /run/user/1000/gvfs.

Adrian
  • 179
  • 1
  • 1
  • 11

0 Answers0