On Sun, May 02, 2021 at 09:35:23PM +0930, Tim via users wrote:
...
If I do (still as the root user): ll /run/user/1000/
ls: cannot access /run/user/1000/gvfs: Permission denied
total 0
drwx------. 2 tim tim 60 May 2 21:25 dconf
d?????????? ? ? ? ? ? gvfs
drwx------. 2 tim tim 100 May 2 16:25 keyring
drwx------. 2 tim tim 80 May 2 16:25 pulse
Not sure if root oughtn't to be able to see gvfs, or that's just some
weird anomaly about how virtual file systems work.
Then, as myself, doing: ll /run/user/1000/
total 0
drwx------. 2 tim tim 60 May 2 21:29 dconf
dr-x------. 2 tim tim 0 May 2 16:25 gvfs
drwx------. 2 tim tim 100 May 2 16:25 keyring
drwx------. 2 tim tim 80 May 2 16:25 pulse
I thought root couldn't be stopped from viewing user's files.
Several things reduce root's omnipotence, notably a network
real or virtual.
You may be root on your computer, but that is no reason to give
you unfettered access to my computer.
gvfs is typically used to automatically mount some remote file
systems. For example, plug your phone into a USB port and its
file system may mount as a gvfs. Root is no longer special.
jl
--
Jon H. LaBadie jonfu(a)jgcomp.com