ianw1974 Posted May 31, 2007 Report Share Posted May 31, 2007 Well, I've only used slocate (never tried mlocate...I don't think), and most of the time I had to do an updatedb before locating, because I was trying to find something I had just installed Me too, confuses me when I find a system with locate or mlocate. Solved easily though with: ln -s /usr/bin/mlocate /usr/bin/slocate or similar for locate if the system has locate. Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted June 4, 2007 Author Report Share Posted June 4, 2007 so I installed the mlocate package, but it seems that neither mlocate nor slocate work. locate does however. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted June 4, 2007 Report Share Posted June 4, 2007 Did you run once "updatedb" as root first? Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted June 4, 2007 Author Report Share Posted June 4, 2007 Did you run once "updatedb" as root first? yup, as I said locate work mlocatge or slocate generates "no such command" Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 5, 2007 Report Share Posted June 5, 2007 The app probably changed, do: rpm -ql mlocate | grep bin | grep locate and then see what the app is called, if it's mlocate, slocate or locate. And then symlink if you prefer to use what you got used to. Quote Link to comment Share on other sites More sharing options...
jkerr82508 Posted June 5, 2007 Report Share Posted June 5, 2007 /usr/bin/locate and /usr/bin/updatedb are the executables that are included in the mlocate package. Jim Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 5, 2007 Report Share Posted June 5, 2007 So, a simple: ln -s /usr/bin/locate /usr/bin/slocate will help those for people used to using slocate. Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted June 5, 2007 Author Report Share Posted June 5, 2007 I always thought that slocate was a "dumbed down" safer version of locate, one that doesn't require root privileges If that's right then symlinking slocate to locate is a "security violation" Quote Link to comment Share on other sites More sharing options...
tyme Posted June 5, 2007 Report Share Posted June 5, 2007 slocate is a secure version of locate, but that doesn't mean you can't or shouldn't run locate as non-root. In some instances, locate is actually slocate, it's simply named differently (this depends on the distribution, I think) for ease of use. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted June 5, 2007 Report Share Posted June 5, 2007 You could run slocate as a standard user as well, so it wouldn't be the "security violation" you state. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.