Re: add user from the web interface
| From: | mike cullerton | Date: | Sun, 08 Jul 2001 17:02:18 +0000 |
| Subject: | Re: add user from the web interface | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56777@lists.php.net to get a copy of this message | ||
on 7/8/01 4:30 AM, INFO (www.trade-revenues.com) at info@trade-revenues.com
wrote:
> Hi,
>
> If I want to add a system user from the web interface using Apache +
> Redhat 6.2. What language should I use. Should I use PHP or Bash or Perl.
> Which one is the best ?? I know PHP can always exec shell command using
> exec() function. But, the apache server is set to nobody.. So I can not
> exec the root command from the web interface. Advice is need in this
> situation.
if you want to use a web interface, you're stuck with the user that apache
runs as. (nobody in your case)
one option is to have the web application create a file, and then have a
cron job as root come by and read the file and add the user(s).
-- mike cullerton