Re: /var/lib/mlocate/mlocate.db perms

2015-05-04 Thread Gordon Messmer
On 05/03/2015 04:47 PM, jd1008 wrote: I distrust suid programs. Skepticism toward SUID root is sometimes merited. Evaluating your own needs for such programs is reasonable. Distrusting the mechanism itself is tin-foil-hat-crazy. I find it strange that a security minded system needs an su

Re: /var/lib/mlocate/mlocate.db perms

2015-05-04 Thread Patrick O'Callaghan
On Sun, 2015-05-03 at 17:47 -0600, jd1008 wrote: > > [egreshko@meimei ~]$ ll /bin/locate > > -rwx--s--x. 1 root slocate 40528 Aug 18 2014 /bin/locate > I distrust suid programs. > I find it strange that a security minded system needs an suid > program to do something as simple as locate a file. T

Re: /var/lib/mlocate/mlocate.db perms

2015-05-03 Thread Ed Greshko
On 05/04/15 07:47, jd1008 wrote: > > > On 05/03/2015 05:25 PM, Ed Greshko wrote: >> On 05/04/15 07:14, jd1008 wrote: >>> As unprivileged user, I run locate >>> and get >>> $ locate file_3.mp3 >>> locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied >>> >>> I always end up running

Re: /var/lib/mlocate/mlocate.db perms

2015-05-03 Thread Frantisek Hanzlik
jd1008 wrote: > > > On 05/03/2015 05:25 PM, Ed Greshko wrote: >> On 05/04/15 07:14, jd1008 wrote: >>> As unprivileged user, I run locate >>> and get >>> $ locate file_3.mp3 >>> locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied >>> >>> I always end up running sudo to change th

Re: /var/lib/mlocate/mlocate.db perms

2015-05-03 Thread jd1008
On 05/03/2015 05:25 PM, Ed Greshko wrote: On 05/04/15 07:14, jd1008 wrote: As unprivileged user, I run locate and get $ locate file_3.mp3 locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied I always end up running sudo to change the perms so unpriv'ed users can run locate.

Re: /var/lib/mlocate/mlocate.db perms

2015-05-03 Thread Frantisek Hanzlik
Ed Greshko wrote: > On 05/04/15 07:14, jd1008 wrote: >> As unprivileged user, I run locate >> and get >> $ locate file_3.mp3 >> locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied >> >> I always end up running sudo to change the perms so unpriv'ed >> users can run locate. >> >> W

Re: /var/lib/mlocate/mlocate.db perms

2015-05-03 Thread Ed Greshko
On 05/04/15 07:14, jd1008 wrote: > As unprivileged user, I run locate > and get > $ locate file_3.mp3 > locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied > > I always end up running sudo to change the perms so unpriv'ed > users can run locate. > > What command should I run so t

/var/lib/mlocate/mlocate.db perms

2015-05-03 Thread jd1008
As unprivileged user, I run locate and get $ locate file_3.mp3 locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied I always end up running sudo to change the perms so unpriv'ed users can run locate. What command should I run so the mlocate.db file is readable by unpriv'ed user