Hi, On Fri, 17 Jun 2005 21:36:43 +0200 "Theo v. Werkhoven" <.> wrote: <...>
rpm -qf `rpm -qal|grep /etc`|sort -u > setugids.txt This gives a sorted list of packages with files in /etc
With rpm --setugids you can reset the UId and GID to the rightfull names, so feed this command with the list you just generated. # rpm --setugids $(cat setugids.txt)
Thank you, it worked just perfectly! I even archived your mail for further studying. In fact I'm sure, that we will reinstall that particular comp, but it will not happen in weeks/months, because seemingly we could get it work now (=no MBs of error-logs). Actually last time I was quite effective while using my own "dummy" strategy to fix the file/folder rights, because there was only a single group corrected by your method: I did chown lp:lp and not lp:sys once... In the same time Randall is completely right with the number of files located under /etc and many of them really don't come directly from RPMs, are links or whatever. My friend is happy now to get back his system and he (+we) learned again something on the importance of regular and complete backups. He most likely stays with Linux and understood that this incident was not caused e.g. by a drunken penguin, but was his own fault... Thanks for all of you replying this topic, Pelibali