[Nolug] Restoring permissions using RPM

From: Jess Planck <jesse_at_funroe.net>
Date: Mon, 14 Jun 2004 11:35:53 -0500
Message-Id: <E7461282-BE20-11D8-AEB8-000A9590A926@funroe.net>

Hi all, I've been lurking on this list for a while. I'm hoping someone
may have some other suggestions or identify any problems with the
following solution. This is a RedHat 9.0 install BTW.

So you do something stupid as root like this... Don't ask.. it's
monday... need coffee.

chown -Rf dude /*

This ruins the permissions on your system, and can put you in a total
panic especially since every device under /dev is now owned by the
"dude" user. So what to do... either crawl through the system and reset
the permissions that you know OR...

rpm -a --setperms - resets permissions
rpm -a --setugids - resets user and group IDS

Used the -a switch to work on all installed RPMs. Oh and it won't fix
anything installed manually or from source. And of course any other
crazy stuff like suexec apache web servers.

Any additional comments would be welcome!

Jess Planck

___________________
Nolug mailing list
nolug@nolug.org
Received on 06/14/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST