On Wed, Jan 19, 2005, David M. Fetter wrote:

> So, we have a problem on of our newly built systems.  It was jumpstarted
> and OpenPKG installed as part of that, but the openpkg user accounts
> (opkg, opkg-r & opkg-n) were not detected.  Now all of the files are
> improperly chowned.  What would the best way be to reset all of the
> permissions back to the default?  I'm thinking some sort of openpkg rpm
> query that lists all of the files installed in every rpm package then
> piping that to some xargs command that chowns them right.  I'm not sure
> what options from rpm would provide me the owner and group of each file
> it lists though.  Anybody have any ideas?

Hi.

I'm not sure, whether i understand the problem. I would expect that
new accounts are created, when existing ones were not detected. Then this
would be a mapping problem
(find /prefix -user/group <wrongNumID>|xargs chown/chgrp <rightNumID>).
.. anyways, it's late...
Check "openpkg man rpm" for the options "--verify" (shows problems) and
--setugids (corrects problems). Maybe this helps.


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im pr�motorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [email protected]

Reply via email to