[balug-talk] updatedb: can not change group of file

David Alban extasia at extasia.org
Wed Sep 27 14:56:52 PDT 2006


Greetings,

Do other folks get this in fc5?[1]

$ updatedb --database-root $HOME --output foo.db
updatedb: can not change group of file `/home/alban/foo.db.3XCWjd':
Operation not permitted

Get same even with:

$ ( umask 0; updatedb --database-root $HOME --output foo.db )

Did a brief RTFM web search but didn't see any report of this.

A run with strace shows the following w/r/to the temp file:

open("/home/alban/foo.db.B2cYDj", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
  ...
chown32("/home/alban/foo.db.B2cYDj", -1, 21) = -1 EPERM (Operation not
permitted)
  ...
write(2, "can not change group of file `/h"..., 56can not change group
of file `/home/alban/foo.db.B2cYDj') = 56
  ...
unlink("/home/alban/foo.db.B2cYDj")     = 0

I run this in a cron job on a box on which I don't have root and would
like it to work.  In the updates section of fedora.redhat.com it shows
that my box has the latest mlocate:

  $ rpm -q -a | grep locate
  mlocate-0.14-0.fc5.1

Anyone have a test version of fc6?  Does it do the same thing?

Thanks,
David

P.S.  It works fine in fc4, but I believe fc4 uses slocate.

[1]  On the box in question:

  $ uname -a
  Linux somehost.localdomain 2.6.17-1.2174_FC5 #1 Tue Aug 8 15:30:55
EDT 2006 i686 i686 i386 GNU/Linux
-- 
Live in a world of your own, but always welcome visitors.


More information about the balug-talk mailing list