Fri, 17 Jun 2005, by pelibali@freemail.hu:
Hi,
I have a friend I pushed very hard to move to Linux and now made for himself (and also for me) an extremely unpleasant situation:( Before I would attempt to fix really _all_ the file/folder permissions he ruined in '/etc' on his SUSE 9.1, would like to ask your opinion please, what I could do. As I understood, he did somehow a recursive chown and changed ALL of the stuff in the above folder to have the owner root:root :(((
[..]
Is there please a more precise way to get rid of this access-right problem? Would e.g. changing the system's general security-level to a very high level then back help us/me? I have physical access to that system.
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) HTH Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.