Results 1 to 6 of 6

Thread: /usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

  1. #1
    Join Date
    Sep 2014
    Location
    Portugal
    Posts
    121

    Default /usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

    I get this when I try to use updatedb (until now).
    I've google , found some forums with this issue, but no clear solution.
    I already uninstall gvfs, and re-installed again.

    I follow this thread http://forums.opensuse.org/showthread.php/387162-permission-denied-on-gvfs/page2 , but no results for me.

    .... what's this, and is there a way to fix it ?

    Thanks

  2. #2

    Default AW: /usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

    Quote Originally Posted by mesnitu View Post
    .... what's this, and is there a way to fix it ?
    Well, updatedb runs as user nobody and has no access to /var/run/user/xxxx/gvfs.
    There's no way for you to "fix" that, as there is nothing to fix.

    If you want to get rid of that message, tell updatedb to _not_ index /var/run/(user), it doesn't make sense anyway.
    You can e.g. add /var/run or /var/run/user to UPDATEDB_PRUNEPATHS in /etc/sysconfig/locate, or add it to PRUNEPATHS in /etc/updatedb.conf.
    But /var/run/ should be there in /etc/updatedb.conf anyway, it is here at least, and I haven't changed anything.
    My file, which is the default one shipped, looks like this, so change yours to look the same:
    Code:
    # /etc/updatedb.conf: config file for mlocate
    
    # This file sets variables that are used by updatedb.
    # For more info, see the updatedb.conf(5) manpage.
    
    
    # Filesystems that are pruned from updatedb database
    PRUNEFS="afs anon_inodefs auto autofs bdev binfmt binfmt_misc cgroup cifs coda configfs cramfs cpuset debugfs devfs devpts devtmps ecryptfs eventpollfs exofs futexfs ftpfs fuse fusectl gfs gfs2 hostfs hugetlbfs inotifyfs iso9660 jffs2 lustre misc mqueue ncpfs nfs NFS nfs4 nfsd nnpfs ocfs ocfs2 pipefs proc ramfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs spufs sshfs subfs supermount sysfs tmpfs ubifs udf usbfs vboxsf vperfctrfs"
    
    
    # Paths which are pruned from updatedb database
    PRUNEPATHS="/tmp /var/tmp /var/cache /var/lock /var/run /var/spool /mnt /cdrom /usr/tmp /proc /media /sys /.snapshots /var/run/media"
    
    
    # Folder names that are pruned from updatedb database
    PRUNENAMES=".git .hg .svn CVS"
    
    
    # Skip bind mounts.
    PRUNE_BIND_MOUNTS="yes"
    Or remove it and re-install mlocate to get the default config file.
    Last edited by wolfi323; 16-Sep-2014 at 07:35.

  3. #3
    Join Date
    Sep 2014
    Location
    Portugal
    Posts
    121

    Default Re: /usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

    Thanks !
    I didn't had updatedb.conf in my system, nor mlocate.
    I've install mlocate , and I think is doing a updatedb...but usually takes longer.
    Anyway as root , I still don't have permissions in some folders :



    Code:
    linux-qqhg:/var/run/user/1000 # ls -la
    ls: cannot access gvfs: Permission denied
    total 0
    drwx------ 7 daniel users 160 Sep 16 14:13 .
    drwxr-xr-x 4 root   root   80 Sep 16 14:13 ..
    lrwxrwxrwx 1 root   root   17 Sep 16 14:13 X11-display -> /tmp/.X11-unix/X0
    drwx------ 2 daniel users  60 Sep 16 14:13 dconf
    d????????? ? ?      ?       ?            ? gvfs
    drwx------ 2 daniel users  60 Sep 16 14:13 krb5cc
    drwx------ 2 daniel users  80 Sep 16 14:13 pulse
    drwxr-xr-x 2 daniel users  60 Sep 16 14:13 systemd
    d????????? ? ? ? ? ? gvfs

  4. #4

    Default Re: /usr/bin/find: ‘/var/run/user/1000/gvfs’: Permission denied

    Quote Originally Posted by mesnitu View Post
    Thanks !
    I didn't had updatedb.conf in my system, nor mlocate.
    Hm?
    Why did you have udatedb then? That's part of mlocate...

    Or did you still have the older findutils-locate package installed?
    That got replaced with mlocate by default a while ago.
    See also the 13.1 release notes.

    But the older updatedb from findutils-locate can also be configured in /etc/sysconfig/locate.

    Anyway as root , I still don't have permissions in some folders :
    Yes. Only the corresponding user has access to /var/run/user/xxxx/gvfs. That's normal.
    Run "ls -la /var/run/user/1000/" as user daniel, and you will see the correct values.
    But why do you even care?
    /var/run is a runtime directory as the name implies, it doesn't even exist on your hard disk.
    Last edited by wolfi323; 16-Sep-2014 at 08:28.

  5. #5
    Join Date
    Sep 2014
    Location
    Portugal
    Posts
    121

    Default Re: /usr/bin/find: =?UTF-8?B?4oCYL3Zhci9ydW4vdXNlci8xMDAwL2d2ZnPigJk=?==?UTF-8?B?OiBQZXJtaXNzaW9uIGRlbmllZA==?=

    On 09/16/2014 04:36 PM, wolfi323 wrote:
    >
    > mesnitu;2664813 Wrote:
    >> Thanks !
    >> I didn't had updatedb.conf in my system, nor mlocate.

    > Hm?
    > Why did you have udatedb then? That's part of mlocate...
    >
    >

    I don't remember if it was I who install it, but I already used locate
    and updatedb, I didn't know that about mlocate and find-utils
    differences , always learning

    ok , I'll give my total indifference to that directory.

    Thanks

    --
    openSuSe 13.1

  6. #6

    Lightbulb Re: /usr/bin/find: =?UTF-8?B?4oCYL3Zhci9ydW4vdXNlci8xMDAwL2d2ZnPigJk=?==?UTF-8?B?OiBQZXJtaXNzaW9uIGR

    Quote Originally Posted by mesnitu View Post
    On 09/16/2014 04:36 PM, wolfi323 wrote:
    >
    > mesnitu;2664813 Wrote:
    >> Thanks !
    >> I didn't had updatedb.conf in my system, nor mlocate.

    > Hm?
    > Why did you have udatedb then? That's part of mlocate...
    >
    >

    I don't remember if it was I who install it, but I already used locate
    and updatedb, I didn't know that about mlocate and find-utils
    differences , always learning :)

    ok , I'll give my total indifference to that directory.

    Thanks

    --
    openSuSe 13.1
    I ran Knoppix 21 from live-DVD and got the mmessagge '/usr/bin/find: `/run/user/1000/gvfs': Permission denied. But wait a minute somerhings missing.
    There isn't a file called /etc/updatedb.conf.
    Therefore, the prunefs that would exclude the the search oof the /var diirectories. This is why I got the Permission denied, maybe this is the answer to others asking for help. Lets not forget that we do not allow things to be searched but what to DENY. Anytthing in PRUNEFS that says /media or /mnt will exclude EVERYTHING in these paths.
    In my case I was able to search everything in the Windows path besides Knoppix because this configuration file was missing. Updatedb did not create the config file or even check that it exists!
    We need to fix updatedb to check existance of config file or ignore it.
    Good luck ,hope this helps.
    /* Jaack */

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •