Skip to main content

sharing directory for users /home/scripts

Comments

6 comments

  • asmithjr
    Update. I see in my /usr/local/apache/logs/error_log UID of script "/home/scripts/file.php" is smaller than min_uid. Checking I do have Service Configuration "Configure PHP and suEXEC Default PHP Version (.php files) 5 PHP 5 Handler suphp Apache suEXEC on Apache Ruid2 off This means I am using suPHP. I understand this but my origional server has the same settings in WHM and yet it works and no errors.
    0
  • asmithjr
    Sorry to keep posting. I copied my suphp.conf file from old server to new server and problem is resolved. Michael. I am not sure it you want to just delete this thread.
    0
  • cPanelMichael
    I copied my suphp.conf file from old server to new server and problem is resolved.

    Hello :) I am happy to see you were able to address the issue. Sharing directories between accounts is considered a security risk. However, feel free to post a copy of your suphp.conf file should other users decide to take the same approach. Thank you.
    0
  • asmithjr
    I agree with you, this is why I did not share the results. it would not be standard for most cPanel servers since typically for shared hosting accounts. In my case it is a dedicated server for just my group.
    0
  • nosajix
    I too have this exact problem. And while I understand the security risks of allowing this behavior, there are practical uses for this. Perhaps somebody knows what config value in suphp allow this?
    0
  • asmithjr
    look in the /etc/suphp.conf find min_uid=100 change that equal to the lowest user that needs access or min_uid=0 find min_gid=100 change that equal to the lowest user group that needs access or min_gid=0 I do not remember but you may want to change the paranoid_uid and paranoid_gid ;paranoid_uid_check=true ;paranoid_gid_check=true paranoid_uid_check=false paranoid_gid_check=false lock down everything else you can and use at your own risks. I've used this on internal servers only.
    0

Please sign in to leave a comment.