Linux - How to restore/reset files permissions/ownership for files part of a specific package?
Eduardo Fraga 270004X3PA Visits (8843)
What if you typed the wrong command and as a result you changed the permissions for way more files than you should?
You can have the perm
Here is a couple of examples:
Reset files perms from a specific package.
# rpm setperms <packagename
Reset ownership (group and user) for files from a specific package.
# rpm --setugids <packagename>
Obs1. At this moment the synaptic (apt) does not provide similar feature. And as far I know HP-UX does not offer such feature as well.
Obs2. Solaris and AIX provide similar features (different commands).