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

    Joined:
    Dec 12, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hi,
    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:
    /home/mydomain/public_html/pics

    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:
    Code:
    
    <VirtualHost MY_IP_ADDRESS:80>
        ServerName mydomain.com
        ServerAlias www.mydomain.com
        DocumentRoot /home/mydomain/public_html
        ServerAdmin mydomain@mydomain.com
        UseCanonicalName Off
        CustomLog /usr/local/apache/domlogs/mydomain.com combined
        CustomLog /usr/local/apache/domlogs/mydomain.com-bytes_log "%{%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>
    <IfModule !mod_disable_suexec.c>
    SuexecUserGroup mydomain mydomain
    </IfModule>
    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/mydomain.com/*.conf"
    
    </VirtualHost>
    
    

    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

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    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...
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