Ask Your Question

Find command Issues

asked 2013-12-17 08:28:06 -0500

ashiq_irphan gravatar image

I ran the following command

ashiq@localhost linux]$ su
[root@localhost linux]# find / -name modversions.h
find: ‘/run/user/1000/gvfs’: Permission denied

Since I am running the command as root, I don`t understand why I`m getting Permission denied.

Please to help me fix this.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2013-12-17 08:48:58 -0500

updated 2013-12-17 09:23:44 -0500

nonamedotc gravatar image

There's nothing to fix "/run/user/1000/gvfs" is a virtual filesystem implementation for Gnome, which allows Gnome applications to access resources such as FTP or Samba servers or the content of zip files like local directories.

you can use "find" with the option "-xdev" to exclude this type of files.

find -xdev / -name modversions.h

edit flag offensive delete link more


I ran find / -xdev -name modversions.h but did not return any result, Does that mean there is no file named modversions.h ?

ashiq_irphan gravatar imageashiq_irphan ( 2013-12-17 09:33:09 -0500 )edit

yes, it means there's no file named modversions.h may be you need to install the kernel-devel package.

ezq gravatar imageezq ( 2013-12-17 09:38:07 -0500 )edit

Rather than searching the entire root partition, you may like to try locate modversions.h. You'll need the mlocate package installed, and have run sudo updatedb at least once or waited until cron.daily has been run at least once.

willo gravatar imagewillo ( 2015-02-09 22:56:56 -0500 )edit

Question Tools


Asked: 2013-12-17 08:28:06 -0500

Seen: 1,023 times

Last updated: Dec 17 '13