Empulse Group a collection of notes from a sys admin, musician, and father

16Apr/090

Reset file permissions of RPM packages

UPDATE: YOU NEED TO RUN THE FOLLOWING COMMANDS IN REVERS ORDER!

So, --setperms then --setugids. This is because setperms will overwrite sticky bits if run after setugids.

A disastrous mistake anyone can make on their Linux server is to chown or chmod their entire filesystem.

You can reset the permissions of packages installed with rpm.

To reset file permissions:

[root@www ~]# rpm --setperms {packagename}

To reset ownership permissions:

[root@www ~]# rpm --setugids {packagename}
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.

Copyright © 2018 Empulse Group · Powered by WordPress
Lightword Theme by Andrei Luca Go to top ↑