Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25714

Summary: Permissions set incorrectly on Slocate database.
Product: Gentoo Linux Reporter: Salim Fadhley <sal>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: 1.4_rc4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Salim Fadhley 2003-08-01 09:34:40 UTC
The slocate ebuild incorrectly sets permissions on the folder containing the
slocate database - in order to work around this problem a sysadmin only has to
do a chmod o+rx.

This bug is reproducable on any fresh install of Gentoo Linux 1.4RC4.

problem:
The locate command does not work for non-root users because the locate database
is not accessablee.

expected outcome:
The locate command should woork normally - printing out a list of files that
match an expression.

Steps to repoduce:
[code]
sal@raynard sal $ locate thunderbird
warning: locate: could not open database: /var/lib/slocate/slocate.db:
Permission denied
sal@raynard sal $ cd /var/lib/slocate/
-bash: cd: /var/lib/slocate/: Permission denied
sal@raynard sal $ ls -l /var/lib/ | grep slocate
drwxr-x---    2 root     407          4096 Aug  1 09:04 slocate
sal@raynard sal $
[/code]

temporary fix:
Chmod the folder so that non root users can access the file / folder.

Notes: 
It seems odd that the group ownership has been assigned to a non-existant group
(id 407) - this might hint at a bigger problem with the baselayout or whatever!

Sal
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-08-01 10:27:30 UTC
Please search for bugs before submitting as directed to in the bug submission
process.

*** This bug has been marked as a duplicate of 19604 ***