Skip to contentSkip to conversation

how to use SuExec

DISCUSSION funky 3 participants 3 messages Nov 15, 2002

lore
Share & tools
lore

funky

author
#0 lore raw

hi linuxers,

I want to run some scripts using
apache/php which would require root permissions. So how do i use SuExec mechanism of apache in php to
gain root permissions. All replies would be appreciated.

Thanks in advance,

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

#1 lore raw
Quoted 4 lines · funky

I want to run some scripts using
apache/php which would require root permissions. So how do i use SuExec mechanism of apache in php to
gain root permissions.

You don't; the SuExec utility deliberately refuses to run as root.

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw
In reply to funky

on "11-14-2002" "funky" writ:

: I want to run some scripts using
: apache/php which would require root permissions.

... change the requirements.

given the documented security problems with php, running anything as
root is begging for trouble. i would hazard the guess , that if it "has" to run as root, you probably don't need to do it.

i'd suggest running your scripts with the uid of the httpd user ...

Signature · 2 lines
... i'm a man, but i can change,
    if i have to , i guess ...