On Sat, Jul 10, 2010 at 2:39 PM, Matt M. <cmorrow132@xxxxxxxxx> 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