public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux <linux-newbie@vger.kernel.org>
Subject: Re: No Locate for User
Date: Sun, 24 Apr 2005 22:06:04 -0700	[thread overview]
Message-ID: <426C7ABC.3000007@comarre.com> (raw)
In-Reply-To: <200504250427.j3P4R6J5000324@skyinet.net>

Peter H. wrote:
> Hi,
> 
> Slackware 10.1 kernel 2.4.29
> 
> I upgraded again Dropline Gnome from 2.8.3 to 2.10 this time with no problems 
> regarding certain programs like gxine not opening.
> 
> However, I cannot use the command "locate" as a user any longer. I get the 
> following error:
> 
> @~:$ locate fips
> warning: locate: could not open database: /var/lib/slocate/slocate.db: 
> Permission denied
> 
> As su there is no problem.
> 
> I did not do anything to this file in fact it has the same permissions as in 
> my Fedora box where a user can do "locate" w/o problem just like before the 
> upgrade in slack.  Updateddb is done daily by cron root.
> 
> :# ls -l /var/lib/slocate
> total 4176
> -rw-r-----  1 root slocate 4275159 2005-04-24 18:06 slocate.db
> 
> How to resolve?

I don't know why ... that is, how ... your Fedora host works with these 
permissions, but I'm not surprised that your Slackware host presents 
problems with them. On Debian, the corresponding file (in a different 
location, but the functional equivalent) is mode 644, the mode you'd 
expect for a file that is to be readable by all users:

  ray@kuryakin:~$ ls -l /var/cache/locate/locatedb
  -rw-r--r--  1 root root 1089123 Apr 24 06:25 /var/cache/locate/locatedb

So try changing the mode to 644 with chmod. Or try adding all users who 
need to use locate to the group slocate (in /etc/group ... perhaps 
Fedora uses this trick to make locate work in mode 640?).

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2005-04-25  5:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25  4:27 No Locate for User Peter H.
2005-04-25  5:06 ` Ray Olszewski [this message]
2005-04-25  8:11   ` Peter
2005-04-25 16:40     ` Ray Olszewski
2005-04-26  4:18       ` Peter
2005-04-26  5:42         ` Greg Olszewski
2005-04-26  7:29           ` Peter
2005-04-26  7:44             ` Greg Olszewski
2005-04-26  8:27               ` Peter
2005-04-26  8:41                 ` Greg Olszewski
2005-04-26  9:11                   ` Peter
2005-04-26 11:53         ` chuck
2005-04-26 11:37       ` chuck
2005-04-25  8:33   ` Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=426C7ABC.3000007@comarre.com \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox