Linux 4 All

Best Linux tricks source

Reset RPM permissions

Again, you managed to screw your system by doing a stupid chown/chmod command were you shouldn’t. Now, if you still have your connection, the following 2 commands, executed in EXACT that order, will restore the RPM permissions, giving you an usable system.

for i in $(rpm -qa); do rpm --setugids $i; done
for i in $(rpm -qa); do rpm --setperms $i; done

Reset MySQL password arrow-right
Next post

arrow-left Check SSL keys
Previous post

Leave a Reply

Your email address will not be published. Required fields are marked *