Re: [PHP] exec shell command from php

2003-10-01 Thread Tom Rogers
Hi, Thursday, October 2, 2003, 1:54:38 AM, you wrote: N> hi all; N> - When i run php.. what user am i using ? is it apache user (nobody) ?? N> - How can i execute useradd command from php ? should i write it in N> pearl/cgi ?? N> - I want to grant my user on my web a free pop account (or webmail)

Re: [PHP] exec shell command from php

2003-10-01 Thread Marek Kilimajer
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

Re: [PHP] exec shell command from php

2003-10-01 Thread Ray Hunter
If you are using apache and php then when php runs the exec function then it is running the the user/group of the apache process. Here is what I might suggest doing. Have a registration form that submits the user's information to another process that logs the information (make sure to validate al

[PHP] exec shell command from php

2003-10-01 Thread Nabil
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 b