14
06
2007
Rebuild RPM file permissions and ownerships
Posted by: major in Command Line, Emergency, SecurityIf you find that someone has done a recursive chmod or chown on a server, don’t fret. You can set almost everything back to its original permissions and ownership by doing the following:
rpm -qa | xargs rpm --setperms --setugids
Depending on how many packages are installed as well as the speed of your disk I/O, this may take a while to complete.












Entries (RSS)