[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
** Changed in: mlocate (Debian) Status: Incomplete => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Not sure what happened over time but I don't see the problem anymore, Ubuntu 20.10, mlocate 0.26-3ubuntu3 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
** Changed in: mlocate (Debian) Status: Unknown => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
May be some some system groups change gid during system upgrade. In this case mlocate created before upgrade retains old gid and loses ability to read mlocate.db. I have access to several hosts and mlocate group have different gid there. Of course it does not explain what removes sgid. Possible workaround is to reinstall mlocate package: sudo aptitude resintall mlocate -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
** Bug watch added: Debian Bug tracker #664206 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664206 ** Also affects: mlocate (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664206 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Same issue on a 15.10 upgraded to 16.04: e0101450@bhaskark:/Distrib/Ubuntu$ locate abc.def locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied e0101450@bhaskark:/Distrib/Ubuntu$ ls -l /var/lib/mlocate/mlocate.db -rw-r- 1 root mlocate 25974609 May 16 09:21 /var/lib/mlocate/mlocate.db e0101450@bhaskark:/Distrib/Ubuntu$ ls -ld /var/lib/mlocate/ drwxr-xr-x 2 root root 24 May 16 09:21 /var/lib/mlocate/ e0101450@bhaskark:/Distrib/Ubuntu$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
On a new Xubuntu 16.04 installation, I saw the following permissions: ls -l /usr/bin/mlocate -rwxr-xr-x 1 root saned 39520 Nov 18 2014 /usr/bin/mlocate 1) mlocate didn't have setuid (which might be ok for some use cases) 2) the group is saned which is completely wrong. I assume the group is assigned by gid instead of name. saned has gid=127 on my system -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Still there in Ubuntu 12.04, is this going to be fixed eventually? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Still there in Ubuntu 12.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Still there in Ubuntu 12.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
This bug is still present in Ubuntu 10.11! Ian's fix in comment #5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-eee/+bug/281471/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
** Changed in: mlocate (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
[Sorry for the spam - I didn't notice that my posts were working despite a popup saying "The following errors were encountered: Object: , name: u'ubuntu-eee'"] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix worked for me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix worked. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix in comment 5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix in comment #5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix in comment #5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix in comment #5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I still see this problem, running maverick. In my case the executable's group was avahi: -rwxr-sr-x 1 root avahi 35432 2010-03-24 06:35 /usr/bin/mlocate Ian's fix in comment #5 fixed it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/281471 Title: Unable to use 'locate' to locate files mlocate.db permission denied -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Jordan, I had the same problem. After a Jaunty install, I found that /usr/bin/mlocate belonged to the ssl-cert group, clearly incorrect! Reading the man page for locate, I found that locate (which is symlinked to mlocate by default) must run as a set-gid mlocate (which means the process automatically belongs to the mlocate group on startup). Ian Abbott's solution is therefore the "correct" one. Yours works, but users are not supposed to belong to this group. This might create security exposures on multi-user systems. -- Unable to use 'locate' to locate files mlocate.db permission denied https://bugs.launchpad.net/bugs/281471 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Better workaround (only have to apply it once): sudo usermod -a -G mlocate $USER Logout, log back in and locate works again. -- Unable to use 'locate' to locate files mlocate.db permission denied https://bugs.launchpad.net/bugs/281471 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
** Changed in: mlocate (Ubuntu) Sourcepackagename: None => mlocate -- Unable to use 'locate' to locate files mlocate.db permission denied https://bugs.launchpad.net/bugs/281471 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
Workaround: sudo chgrp mlocate /usr/bin/mlocate sudo chmod g+s /usr/bin/mlocate -- Unable to use 'locate' to locate files mlocate.db permission denied https://bugs.launchpad.net/bugs/281471 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 281471] Re: Unable to use 'locate' to locate files mlocate.db permission denied
I have this problem with locate but not with ping or crontab. I don't want to set set the s bit because locate is supposed to only show users the location of files they have permission to see. The problem on my system seems to be that /var/lib/mlocate/mlocate.db is unreadable by others. If I chmod o+r then it works. However after running updatedb as root the permissions are reset back to -rw-r- -rw-r- 1 root mlocate 9204983 2008-11-20 20:15 /var/lib/mlocate/mlocate.db I was wondering if there may be a reason for /var/lib/mlocate/mlocate.db to be unreadable by others because although it has a lot of binary bits (I presume that's what the highlighted "^@" are) there is also a lot of human readable text that could potentially be a security risk. Does anyone know what this file's permissions are supposed to be? Say on an install where it has always worked? ** Also affects: ubuntu Importance: Undecided Status: New -- Unable to use 'locate' to locate files mlocate.db permission denied https://bugs.launchpad.net/bugs/281471 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs