Re: exec shell command from php

From: Date: Wed, 01 Oct 2003 16:13:52 +0000
Subject: Re: exec shell command from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164572@lists.php.net to get a copy of this message
Did you read my message on sudo? This is how it gets done, so RTFM - http://www.courtesan.com/sudo/man/sudo.html Nabil wrote:
hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I want to grant my user on my web a free pop account (or webmail) so i need to create an user with bin/false so he has no shell login but pop login ... how can i do this by php.. as exec('useradd ... couldn't be done only by root ..... what user should i do ? what solution .. i googled for virtual popuser .. and i didn't manage .. so i decided to do it this way any comment ?


« previous php.general (#164572) next »