Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shell hosting and apache pid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
madcat87
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2005
Posts: 120

PostPosted: Sat Mar 25, 2006 9:08 pm    Post subject: Shell hosting and apache pid Reply with quote

I am having a server and multiple users can connect to it with ssh.They have a maildir and a public_html dir in their HOMEDIRs.The problem is with the execution of php scripts through Apache. The problem is that the php scripts executed in ~/public_html are executed with the privilege of the Apache user Process.So every user can execute a script that can read in the homedirs of the other users.Is there any way to make Apache to execute this php files with the ID of the Owner not the user Apache apache is running as ?

Thanks :)
Back to top
View user's profile Send private message
eaglex
n00b
n00b


Joined: 03 Dec 2005
Posts: 15

PostPosted: Sun Mar 26, 2006 9:27 am    Post subject: Reply with quote

Quote:
suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

http://www.suphp.org/Home.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum