Page 1 of 1
Allow ONLY ME to use exec() and system()
Posted: Tue Jan 16, 2007 9:05 am
by yabado
I run a shared server with hundreds of clients.
I would like to be able to do system level stuff, bit not allow anyone else to.
I have all the disable_functions set, but want to allow just myself access to use them.
Is there a way I can accomplish this?
Thanks.
Posted: Tue Jan 16, 2007 1:12 pm
by aaronhall
I'm not expert on the topic, but I would try setting the permissions per user at the operating system level.
Posted: Tue Jan 16, 2007 3:03 pm
by feyd
You should be able to remove the disable_functions settings via php_admin_value directives in the httpd.conf for your particular directory.
edit: oops, nevermind, it's a php.ini only directive.
There's the option of using a different php.ini for your directories however.
Posted: Tue Jan 16, 2007 4:15 pm
by Kieran Huggins
I'm thinking it would be a UNIX permissions issue - you might need to run your own instance of apache or php with the guid bit set.
Posted: Wed Jan 17, 2007 6:48 am
by yabado
feyd wrote:
There's the option of using a different php.ini for your directories however.
Really? How do you use different php.ini files ina single instance of PHP?
All the mention of UNIX permissions are not relevant. Changing permissions has no effect on how PHP performs. Thanks anyway.
Posted: Wed Jan 17, 2007 8:29 am
by feyd
You cannot change ini files for a single instance of PHP. The file is only read once.
CGI versions are the way to go if you don't want to have multiple instances of Apache running.