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.

Account Home directories permissions keep resetting

Discussion in 'General Discussion' started by Jared Long, Sep 19, 2014.

  1. Jared Long

    Jared Long Member

    Joined:
    Sep 19, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pflugerville, Texas, United States
    cPanel Access Level:
    Root Administrator
    Cpanel friends,

    I have a situation in which the permissions on the directories of the website owners is being changed such that they become unable to upload files for their website. These permissions are usually fixed VIA SSH to the console of the server and a chmod to their home directory and all its contents.

    My question is:
    What is the mechanism that could be causing this?
    A google search returns a number of forum posts with similar questions, but many of them have gone unanswered.
    I am hoping that someone can offer a few places that I might be able to look to find the source of the permissions changing in such an unpredictable manner.

    Regards,
    -JL
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have an example of the directories you can mention here? Are you speaking of directories of a CMS for example, where a user uploads an addon of some sort and then has this issue?
     
  3. Jared Long

    Jared Long Member

    Joined:
    Sep 19, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pflugerville, Texas, United States
    cPanel Access Level:
    Root Administrator
    It appears to change the permissions for all the public_html directories to "750".
    The client has been installing Wordpress from the Cpanel console for a number of the users but not all.

    Honestly, there seems to be no pattern to when this occurs.
    is there any information from the server I could look into to at least rule out some of the possibilities?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is the server using SuPHP?
     
  5. Jared Long

    Jared Long Member

    Joined:
    Sep 19, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pflugerville, Texas, United States
    cPanel Access Level:
    Root Administrator
    Apache suEXEC is set to on if that is what you are referring to.
    Otherwise, we are using dso as the PHP handler.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will likely want to use suPHP as your PHP handler to ensure files uploaded through the script are owned by the account username. Permission/ownership changes are typically not required when using suPHP:

    suPHP Considerations

    Thank you.
     
  7. Jared Long

    Jared Long Member

    Joined:
    Sep 19, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pflugerville, Texas, United States
    cPanel Access Level:
    Root Administrator
    Thank you, I much appreciate the insight into potential fix for the problem. I would still, if at all possible, like to understand the machinations that are causing the issue with permissions in the first place.
    As it stands, this is the chain of events:

    users are unable to upload to their public_html directory.
    Chmod 777 to allow the user to work.
    some time passes
    all public_html files are set to 750

    We have decided to set the Cpanel updates to manual only to try and rule it out as the potential cause of the permissions resetting.

    we are still waiting to see the results.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    A cPanel update will not change the permissions of all files within the public_html directory. Are you sure it's all files and not the public_html directory itself? Keep in mind that using 0777 permissions is often a security risk to your account.

    Thank you.
     
Loading...

Share This Page