How to Restore Default System Files & Directory Permission on Linux
Unfortunately if you have changed files and directories permission to 777 under the all root " / ". You can not reset root password and logged into user account including graphically.
bin dev home lib64 media mnt opt root selinux srv tmp var xen
boot etc lib lost+found proc sbin sys usr
We don't want to be re-install the operating system, can restored all the uids and gids, files and directories permission using rpm command with parameter called --setperms and --setugids .
1. To run the follwing command line reset uids and gids on files and directories,
2. To run the following command line reset permissions on files and directories,
Finally reboot your system,