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!

public_html permissions revert to 755

Discussion in 'General Discussion' started by bmett, Apr 23, 2017.

Tags:
  1. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Brisbane, AU
    Hi there,

    Can somebody tell me why the public_html directory of all accounts gets reverted to 750 permissions? I need the permissions to be 755, but it seems, that WHM/cpanel is reverting those to 750 on a regular (daily?) basis.
    Is that a cronjob doing that? What script would cause this? Can I stop this?
    Cheers,
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,
    Is there a reason you want to set 755 permission as public_html should be 750 on cPanel server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bmett

    bmett Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Brisbane, AU
    Maybe you are right and I approached this the wrong way.
    Changing the all public_html permissions to 755 would allow any user on the server to access all public_html folders on the server right?
    What I want to achieve is to only allow one specific user on the server to access all public_html folders on the server. How would I do that?
    Cheers,
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The File Protect functionality will check the permissions and ownership values on each user account's public_html directory and each addon domain's DocumentRoot directory and then set the values accordingly. It also takes into whether modules such as Mod_Ruid2 are enabled, which changes how the ownership values are configured on the public_html directory. As of cPanel 62, it defaults to on and is controlled via "WHM >> Tweak Settings". Here's the relevant section the cPanel 62 Release Notes:

    Regarding your other question:

    This is unsupported and considered a bad security practice. Could you let us know what in-particular you are attempting to achieve with this type of setup so we can suggest a potential alternative?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice