I would like a simple bash script to verify that all directories, subdirectories and files in /var/www/html comply with the standards of:
1) all are owned by apache:apache
2) all files have 0644 permissions
3) all directories and subdirectories have 0755 permissions
When a discrepancy is found, the script should append to a log file and correct the settings on the files and directories found to be noncompliant.
Needs to work on CentOS 6.x and CentOS 7.x
Hi,
I'm an experienced linux system administator. I think I can do the job. Please contact me and I'm getting started.
And the script is ready!
Cheers,
Jason