Re: [PHP] adduser & php

2010-07-16 Thread Ashley Sheridan
y Sheridan > > > Sent: Saturday, July 10, 2010 2:01 PM > > > To: Matt Morrow > > > Cc: php-general@lists.php.net > > > Subject: Re: [PHP] adduser & php > > > > > > > > > On Sat, 2010-07-10 at 13:45 -0500, Matt Morrow wrote: >

Re: [PHP] adduser & php

2010-07-15 Thread Gautam Bhatia
re it executes > > the command, or because the variable is inside quotes, it is not getting > > through. > > > > > > From: Ashley Sheridan > > Sent: Saturday, July 10, 2010 2:01 PM > > To: Matt Morrow > > Cc: php-general@lists.php.net > > Subject

Re: [PHP] adduser & php

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 12:56 -0600, Nathan Nobbe wrote: > On Sat, Jul 10, 2010 at 2:39 PM, Matt M. 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'

Re: [PHP] adduser & php

2010-07-13 Thread Nathan Nobbe
On Sat, Jul 10, 2010 at 2:39 PM, Matt M. 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 execute

Re: [PHP] adduser & php

2010-07-10 Thread Adam Richardson
e variable just before it executes > the command, or because the variable is inside quotes, it is not getting > through. > > > From: Ashley Sheridan > Sent: Saturday, July 10, 2010 2:01 PM > To: Matt Morrow > Cc: php-general@lists.php.net > Subject: Re: [PHP] adduser & php &g

Re: [PHP] adduser & php

2010-07-10 Thread Matt M.
ide quotes, it is not getting through. From: Ashley Sheridan Sent: Saturday, July 10, 2010 2:01 PM To: Matt Morrow Cc: php-general@lists.php.net Subject: Re: [PHP] adduser & php On Sat, 2010-07-10 at 13:45 -0500, Matt Morrow wrote: I am using php 5 on OpenBSD 4.7 I have a script

Re: [PHP] adduser & php

2010-07-10 Thread Daniel Brown
On Sat, Jul 10, 2010 at 14:45, Matt Morrow wrote: > >                $username=$_POST['username']; >                $password=$_POST['password']; >                $output=exec('/usr/bin/sudo adduser -unencrypted -batch > $username hosting "$firstname $lastname" $password'); >                echo "

Re: [PHP] adduser & php

2010-07-10 Thread Ashley Sheridan
On Sat, 2010-07-10 at 13:45 -0500, Matt Morrow wrote: > I am using php 5 on OpenBSD 4.7 > > I have a script which takes a username and password from $_POST, and is > supposed to add the user to the system database. The problem is, adduser > creates a username with the same name as the group. The

[PHP] adduser & php

2010-07-10 Thread Matt Morrow
I am using php 5 on OpenBSD 4.7 I have a script which takes a username and password from $_POST, and is supposed to add the user to the system database. The problem is, adduser creates a username with the same name as the group. The code is: $username=$_POST['username'];