[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locate




DMW wrote:
> 
> /etc/cron.daily has these:
> 
> -rwxr-xr-x   1 root     root           51 Apr  7 11:04 logrotate
> -rwxr-xr-x   1 root     root          390 Apr  9 18:26 makewhatis.cron
> 
> -rwxr-xr-x   1 root     root          291 Apr 19 13:55 slocate.cron
> -rwxr-xr-x   1 root     root           54 Apr  8 12:48 tmpwatch
> 
> ...

Ah yes, RH6 switched from the regular locate to Secure Locate.  From
what I've read, it also keeps track of file permissions/owners so users
can't locate just any old file.  I had a simple mod back like a year ago
in Linux Gazette, just doing an open() call to see if a user's supposed
to be able to read it.  This took care of both files they shouldn't be
seeing, and ones that did not exist anymore.  Anyway, run slocate.cron
and then the database should be updated and you should be able to then
do locates.
 
> Steven Pritchard wrote:
> 
> > DMW said:
> > > After upgrading from RH5.2 to RH6, locate doesn't work.  Typing
> > "locate
> > > anything" just yields:
> > >
> > > locate: decode_db(): open: (2) No such file or directory
> >
> > Look for something like /etc/cron.daily/updatedb.cron and run it.
> >
> > Steve

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.