cPanel update resets some permissions
Hello,
Last days, I opened a ticket because I had a problem with a script that was correctly working but stopped working suddenly. I suspected this happened near a WHM update. I opened a ticket to get help with my problem and it appears that it was caused because a directory like /home/anaccount/subdomain.domain.com had permission 0750 and I needed 0751 for my use. So the support made a "chmod +x /home/anaccount/subdomain.domain.com" and my problem was solved... until today !
Today, I saw that I had the same problem and, of course, I immediately checked the permissions and I saw that /home/anaccount/subdomain.domain.com was again 0750 !!
And I saw that the WHM update to 68.0.18 has been done this night (automatically) !!
So I can say that the WHM update has reset the permissions of /home/anaccount/subdomain.domain.com to 0750.
Is that a bug or a feature ??? Should I open a ticket for that ?
Because if it is a "feature", I will have to check very often if some folders have the right permissions in order that the server users don't get bugs...
Or maybe you would have another solution ??
Many thanks in advance for your help !!
T.
-
ok I opened a ticket and It was related to fileProtect module. We had to desactivate it. It's sad that all domains have to "pay" for one of them who needs a small "extra-liberty"... It would be nice to be able to desactivate fileProtect selectively (for some domains and not others)... 0 -
Generally speaking, the document root for a domain should be user:nobody 750. I'm not sure why you'd need 751, but on a selective basis I suppose you could write a post script hook for upcp to set those domains back to 751 after cPanel updates. 0 -
I had to set "chmod +x /home/anaccount/subdomain.domain.com/subfolder " to allow MySQL to write the result of a "SELECT... INTO OUTFILE" query to the "subfolder" folder. I did no permission modifications on it's parent folders... And the update had reset the permission on that subfolder to 0750... Is there a best way to do allow MySQL to write in that subfolder without altering subfolder permissions ? 0 -
ok I opened a ticket and It was related to fileProtect module. We had to desactivate it.
Hello, For anyone else browsing this thread with the same question, note the referenced option is "Enable File Protect" and is found under the "Security" tab in "WHM >> Tweak Settings". Thank you.0
Please sign in to leave a comment.
Comments
4 comments