On Thu, 2005-01-20 at 00:09 +0100, Matthias Kurz wrote: > 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.
Ah, groovy. Yeah, I'm just slammed right now, so I was being lazy on this one. Thanks. > > > (mk) > -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu
signature.asc
Description: This is a digitally signed message part