11

When i use lsof with sudo like this

sudo lsof ~


lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs
      Output information may be incomplete.

However when i use it without sudo, i don't get this error.

What means this message?

nanofarad
  • 20,597
  • 12
  • 65
  • 91
NES
  • 32,845
  • 41
  • 101
  • 115
  • What @jmtd said is correct. Give [How to get sudo access to shares mounted by Gigolo](http://askubuntu.com/questions/401454/how-to-get-sudo-access-to-shares-mounted-by-gigolo/401509) a shot; it may help you get around it. – Boxbot Aug 09 '16 at 20:39
  • To whom it may concern, I get the same warning with and without `sudo` ( I am operating from tty1, but this shouldn't matter I presume) – XavierStuvw Dec 12 '16 at 14:15

1 Answers1

13

There is a FUSE virtual filesystem mounted at ~/.gvfs.

For the majority of filesystem accesses, permissions are ignored for the root user. However, FUSE virtual filesystem mounts are one of the rare exceptions. FUSE virtual filesystems are normally restricted to the user who mounted them.

In this case, the gvfs-fuse-daemon command (run as part of your desktop session) created this mount, belonging to you, and no-one else can access it, including root.

jmtd
  • 916
  • 1
  • 7
  • 12