Red Hat Bugzilla – Bug 178427
rpm appears to lack means to restore incorrect filemodes
Last modified: 2007-11-30 17:11:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050517 Firefox/1.0+
Description of problem:
I propose a new /usr/bin/rpmfixmodes that will return all or a selection of files (chosen by filename or package) to the values in the RPM DB thus returning to conformity with rpmverify.
I have a quick draft script at
but withot the file selection logic.
A dry run reporting planned actions would also be desirable.
If there is interest in including such a tool I'm happy do develop it (in Perl) and contribute it under GPL.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. chmod -R 777 /
2. echo Oh Bother
Actual Results: filemodes are now wrong
Expected Results: as expected - you asked for it; you got it
How does this differ from RPM's "--setperms" and/or "--setugids" options?
Doesn't differ at all.