Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel update resets some permissions

Discussion in 'General Discussion' started by trucmuche, Sep 8, 2017.

  1. trucmuche

    trucmuche Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    80
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    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.
     
    #1 trucmuche, Sep 8, 2017
    Last edited: Sep 9, 2017
  2. trucmuche

    trucmuche Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    80
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    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)...
     
  3. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    25
    Trophy Points:
    168
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    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.
     
  4. trucmuche

    trucmuche Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    80
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    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 ?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page