Restore default system permissions in Linux using --setperms and --setugids.
1) To permissions on files and directories
for a in $(rpm -qa); do rpm --setperms $a; done
2) To reset uids and gids on files and directories :
for b in $(rpm -qa); do rpm --setugids $b; done
1) To permissions on files and directories
for a in $(rpm -qa); do rpm --setperms $a; done
2) To reset uids and gids on files and directories :
for b in $(rpm -qa); do rpm --setugids $b; done
No comments:
Post a Comment