By this script you can fix files perimsion issues on mail, database all files and directory issue.
Run as root
###For Single user Issue fix:
wget https://raw.githubusercontent.com/shivsingh7150/cPanel-File-Permission-Issues-Fix-Script-/master/fixperms.sh
sh ./fixperms.sh -a USER-NAME
USER-NAME = cPanel User Name
###For all cPanel users Issue Fix:
wget https://raw.githubusercontent.com/shivsingh7150/cPanel-File-Permission-Issues-Fix-Script-/master/fixperms.sh
sh ./fixperms.sh -all
In case of any issue or suggestion, please contact me on shivsingh7150@hotmail.com