shell_exec "root" question

From: Date: Thu, 08 Aug 2002 22:37:37 +0000
Subject: shell_exec "root" question
Groups: php.general 
Request: Send a blank email to php-general+get-111744@lists.php.net to get a copy of this message
Hi, i wrote a script, which runs echo shell_exec("exim -bp"); so it simply gives me the current mail queue. However, it only works when called by user "root", because exim won't let "group" or "others" execute it. So, i cannot use it with apache, because it runs as "nobody". Well, i saw scripts that can do so, but i have no clue how it is possible for them. Does anyone have an idea? I thought about adding a cron-job and let it update a file every 5 minutes with the current mail queue, but that will cause unnecesary load and it won't be up2date. So, any ideas are welcome, Thanks, Duncan

« previous php.general (#111744) next »