Re: Dumping COMPLETE slocate (updatedb) database?
From: Alexander Skwar (alexander_at_skwar.name)
Date: 07/11/05
- Next message: Chris Barts: "Re: An end to tweaking?"
- Previous message: Tony Lawrence: "Re: Any newbie Linux forums?"
- In reply to: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Next in thread: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Reply: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 11 Jul 2005 23:44:27 +0200
· Dave Gibson <dave+news001@gibson-hrd.abelgratis.co.uk.invalid>:
> Alexander Skwar <alexander@skwar.name> wrote:
>> · Dave Gibson <dave+news001@gibson-hrd.abelgratis.co.uk.invalid>:
>>
>>> Alexander Skwar <alexander@skwar.name> wrote:
>>>> Hello.
>>>>
>>>> Because I've lost some filesystems recently, I'd like to find out,
>>>> what I've *exactly* lost. To do that, I'd like to read and *print*
>>>> (on screen) the /complete/ slocate/updatedb database from
>>>> /var/lib/slocate/slocate.db.
>>>>
>>>> But when I "locate" something, the result is only printed if the
>>>> file actually right now exists.
>>>
>>> As root, search with the security level set to zero:
>>>
>>> # locate -l 0
>>
>> Nope, doesn't help. With "-l 1" (default) only those files are
>> printed, that the user has access to and which exist. With -l 0,
>> the first part of the check is skipped.
>
> This was a misunderstanding on my part -- the security level setting
> only has an effect when building or updating the database.
No. Wrong again :) It has effect when reading as well.
> You should be able to dump the entire database by doing this as root:
>
> # slocate '*'
No, you're not able to dump the entire database. With the unpatched
slocate, you just cannot do that.
slocate only prints a result, if the current user has access to the
found file. No user (not even root) has access to non existing files.
Alexander Skwar
-- Comedy, like Medicine, was never meant to be practiced by the general public.
- Next message: Chris Barts: "Re: An end to tweaking?"
- Previous message: Tony Lawrence: "Re: Any newbie Linux forums?"
- In reply to: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Next in thread: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Reply: Dave Gibson: "Re: Dumping COMPLETE slocate (updatedb) database?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|