Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Created September 10, 2014 05:58
Show Gist options
  • Save nghuuphuoc/5a9322bd2fcf84c7cd46 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/5a9322bd2fcf84c7cd46 to your computer and use it in GitHub Desktop.
Reset file permissions
for package in $(rpm -qa); do rpm --setperms $package; done
for package in $(rpm -qa); do rpm --setugids $package; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment