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.
-
AuthorPosts
-
December 3, 2022 at 7:27 am #94760Member
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.
December 3, 2022 at 8:04 am #94763MemberRobin
::Windows is like a submarine. Open a window and serious problems will start.
December 3, 2022 at 6:33 pm #94801Member
sybok
::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.December 6, 2022 at 6:42 am #94990Memberahoppin
::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.
December 6, 2022 at 6:47 am #94991ModeratorBobC
::Boy, that is ugly and cryptic.
Why not just use mc?
sudo mcThen Command >> Find file
If that doesn’t work, look at searchmonkey.
-
AuthorPosts
- You must be logged in to reply to this topic.