Bug 178427

Summary: rpm appears to lack means to restore incorrect filemodes
Product: [Fedora] Fedora Reporter: Peter Allan <lists>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: nalin
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://answers.google.com/answers/threadview?id=434022
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-20 19:25:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Allan 2006-01-20 14:58:50 UTC
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
http://www.notatla.org.uk/SOFTWARE/linux_filemode_recovery.txt
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):


How reproducible:
Always

Steps to Reproduce:
1. chmod -R 777 /
2. echo Oh Bother
3.
  

Actual Results:  filemodes are now wrong

Expected Results:  as expected - you asked for it; you got it

Additional info:

Comment 1 Nalin Dahyabhai 2006-01-20 18:35:20 UTC
How does this differ from RPM's "--setperms" and/or "--setugids" options?

Comment 2 Jeff Johnson 2006-01-20 19:25:40 UTC
Doesn't differ at all.