View Full Version : "locate" command
Sealbhach
July 18th, 2009, 03:10 PM
I've noticed since I installed Jaunty that the "locate" command requires sudo powers, if I recall correctly, this wasn't the case in previous releases. Is that correct?
.
dragos240
July 18th, 2009, 03:15 PM
Weird, I can use it without sudo.
JillSwift
July 18th, 2009, 03:16 PM
I've noticed since I installed Jaunty that the "locate" command requires sudo powers, if I recall correctly, this wasn't the case in previous releases. Is that correct?
.
I locate just fine on Jaunty without SUper powers. :confused:
sisco311
July 18th, 2009, 03:21 PM
what's the output of:
ls -al /usr/bin/mlocate
Yannick Le Saint kyncani
July 18th, 2009, 03:29 PM
You don't need to be root to use locate, however, you won't have access to hierarchies that are normally hidden to you using it.
MikeTheC
July 18th, 2009, 03:35 PM
I've never been able to find the locate command, sadly.
Sealbhach
July 18th, 2009, 05:02 PM
what's the output of:
ls -al /usr/bin/mlocate
I get
-rwxrwxrwx 1 root mlocate 35352 2009-03-14 18:35 /usr/bin/mlocate
I thought iit must be something to do with permissions.
.
sisco311
July 18th, 2009, 05:06 PM
sudo chmod 2755 /usr/bin/mlocate
Sealbhach
July 18th, 2009, 05:10 PM
sudo chmod 2755 /usr/bin/mlocate
OK, thanks! Works OK now. How might it have got changed?
.
dragos240
July 18th, 2009, 05:22 PM
you changed the mode so that users can use it. chmod = change mode
sisco311
July 18th, 2009, 05:33 PM
OK, thanks! Works OK now. How might it have got changed?
.
https://bugs.launchpad.net/ubuntu/+source/mlocate/+bug/281471 ?
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.