Bilal Muddassir forced the electrons to say:
> $ ls -l /usr/bin/slocate
> -rwx-r-s-r-x 1    root    slocate    15032    Apr 19 1999 /usr/bin/slocate
> 
> What is the group wise +s?

Also take a look at:

$ ls -al /var/lib/slocate/
total 872
drwxr-x---   2 root     slocate      4096 Apr 17 04:05 .
drwxr-xr-x  15 root     root         4096 Mar 11 15:15 ..
-rw-r-----   1 root     slocate    878950 Apr 17 04:05 slocate.db

So, since others have no read permission to either the directory or to the
database, slocate runs with gid set to the group of the database, so that
normal users can take advantage of the database.

This is a security feature introduced in recent versions of locate (hence the
name slocate - secure locate).

Binand

-- 
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])


-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to