On Thu, May 28, 2009 at 08:42:16PM +0100, Dominic Hargreaves wrote:
> It would be really nice to have support for searching for files owned by
> a given user/group. Presumably the information is already in the database,
> for authorization reasons.

Hi,

As of bookworm, mlocate is removed from the archive in favor of plocate.
Is this bug still relevant for you? (If not, I will close it, along with the
other bugs inherited from plocate.)

Do note that the information is _not_ already in the database, neither for
mlocate nor plocate; authorization is done by checking every directory up
from the root, ie., effectively asking the kernel. (Notably, the file itself
isn't checked, since one doesn't need access to it to scan it.) Anything else
would be very difficult wrt. complicated ACLs, networked filesystems or
simply access rights that have been changed since the database was created.
Thus, if someone made such an option for plocate, it would be no more
efficient than piping the list of results through a shell script to check the
owner (and with ACLs, is the owner always what you want?).

/* Steinar */
-- 
Homepage: https://www.sesse.net/

Reply via email to