Red Hat Bugzilla – Bug 471581
how to restore advanced file permissions (Sticky, SUID, SGID)
Last modified: 2009-02-05 07:31:39 EST
Description of problem:
advanced filepermissions gone
Version-Release number of selected component (if applicable):
Steps to Reproduce:
restore file permissions for fedora by:
rpm -qa | rmp --setperms --setugids
i susspect that advanced file permissions like sticky bit, SUID and SGID are whiped because some commands behave different. For example:
when loggid in as an regular user isuing:
user$ su -
authentication failed while using the correct root password
Is there a way to restore those permissions whitout re-installing the system, or is there an overview for fedora of files/directories using these filepermision so i can restore them by hand.
Moving to rpm component.
The order matters here, --setperms and --setugids are two different operations, and changing uid/gid causes suid/sgid bits to be reset, undoing part of the work of --setperms.
This'll do the trick (for all packages, to selectively reset replace -a with package names)
# rpm --setugids --setperms -a
No bug here, except perhaps insufficient documentation on these popt aliases.