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!

have suPHP_UserGroup enabled, how can access files on my other account?

Discussion in 'General Discussion' started by phpfly, Dec 12, 2009.

  1. phpfly

    phpfly Registered

    Dec 12, 2009
    Likes Received:
    Trophy Points:
    I have a dedicated server and have 2 websites (lets call the accounts: mydomain and mydoman2) which share images users post on them. The images are stored in:

    I would like to have the ability of mydomain2 account to have all rights to read, delete, write from that account.

    here is what I have in http.conf:
    <VirtualHost MY_IP_ADDRESS:80>
        DocumentRoot /home/mydomain/public_html
        UseCanonicalName Off
        CustomLog /usr/local/apache/domlogs/ combined
        CustomLog /usr/local/apache/domlogs/ "%{%s}t %I .\n%{%s}t %O ."
        ## User findhote # Needed for Cpanel::ApacheConf
        UserDir disabled
        UserDir enabled mydomain
         <IfModule mod_suphp.c>
           suPHP_UserGroup mydomain mydomain
    <IfModule !mod_disable_suexec.c>
    SuexecUserGroup mydomain mydomain
    ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/
    # To customize this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/std/2/mydomain/*.conf"

    I have disabled openbase_dir on my server, but that did not work. I've also tried adding directories as shown in apache manual but still can't access mydomain from mydomain 2 account.

    My managed server guy told me this can be done, if I disable suexec but I was also warned that this might open up security holes. Can this be done without disabling suexec? Or is it ok to disable suexec? Can't I modify the vhost file to permit the other directory? There must be a way... ;)

    If anyone knows, i'd appreciate the input :)
  2. thewebhosting

    thewebhosting Well-Known Member

    May 9, 2008
    Likes Received:
    Trophy Points:
    If both the users of website1 and website2 are in the same Group then I think changing the permissions of pics directory to 775 might meet your requirement.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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