Not accessible to root?

Forum Forums New users New Users and General Questions Not accessible to root?

  • This topic has 4 replies, 4 voices, and was last updated Dec 6-6:47 am by BobC.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #94760
    Member
    ahoppin

      Searching for a file with find and using sudo with it (to suppress the annoying long list of “permission denied” directories) I got … permission denied on a directory. Really? A directory that even *root* can’t touch?

      Maybe I’ve been living under a rock, but I’ve never seen anything like this.

      Is it normal? Or is it a worm hiding itself?

      # pwd
      /run/user/1000
      # ls -l
      ls: cannot access ‘gvfs’: Permission denied
      total 0
      drwx—— 3 ahoppin ahoppin 60 Nov 26 15:20 dbus-1
      drwx—— 2 ahoppin ahoppin 60 Dec 3 01:28 dconf
      drwx—— 2 ahoppin ahoppin 40 Dec 3 01:34 geany
      d????????? ? ? ? ? ? gvfs
      drwx—— 2 ahoppin ahoppin 40 Nov 26 15:20 pulse
      # whoami
      root
      # file gvfs
      gvfs: cannot open `gvfs’ (Permission denied)
      # stat gvfs
      stat: cannot statx ‘gvfs’: Permission denied
      #

      What the heck is going on with /run/user/1000/gvfs ??? All the shell seems to know about it is that it’s a directory. It seems to have no permissions, owner, or date.

      #94763
      Member
      Robin
        #94801
        Member
        sybok
          Helpful
          Up
          0
          ::

          Hi, a tip: I usually run ‘find’ e.g. as follows
          find ~/ -type f -iname '*mighty*' 2>/dev/null
          where the ‘2>…’ ensures that error output (which sometimes makes the searched-for-information difficult to find) is not printed on screen.

          #94990
          Member
          ahoppin
            Helpful
            Up
            0
            ::

            Thank you Robin! Linux seems to be getting ever more complex – like other operating systems we know. I trust that this has some benefit for users.

            Sybok, thanks for the tip. I never thought of using -type f. Depending on your password, redirecting stderr might be more or less typing than sudo and the password. Sounds like a good place to use a shell script.

            #94991
            Moderator
            BobC
              Helpful
              Up
              0
              ::

              Boy, that is ugly and cryptic.

              Why not just use mc?

              sudo mc

              Then Command >> Find file

              If that doesn’t work, look at searchmonkey.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.