Linux – Repair Permissions
As I was building a LinuxFromScratch.org distribution, I wanted to ensure all my file permissions, owners, and groups were correct. The scripts should be run on the system whose files attributes you would like to duplicate (Redhat, Fedora, Ubuntu, Debian, etc) and it will output a script which can be run on the Linux system whose attributes are incorrect. Both scripts will need to be run as root.