Monday, November 5, 2012

Reset the system default permissions using --setperms and --setugids.

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












No comments: