Re: adduser & php

From: Date: Tue, 13 Jul 2010 18:56:29 +0000
Subject: Re: adduser & php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-306877@lists.php.net to get a copy of this message
On Sat, Jul 10, 2010 at 2:39 PM, Matt M. <cmorrow132@gmail.com> wrote: > The only thing is, when I execute this command from a shell, it works. > Obviously I'm replacing $username and $password with something valid when > doing this manually. > > It's like the script clears the $username variable just before it executes > the command, or because the variable is inside quotes, it is not getting > through. > likely the user the webserver is running as does not have sudo privileges; youll have to properly configure sudo so that the webserver user only has access to run the useradd and w/e other superuser required commands you intend to run from it. -nathan

« previous php.general (#306877) next »