cron adduser

Hi,

creating a .php containing
<? exec( "useradd myuser" ) ?>

and called by cron as root does not create a user.


What can i change to make it work??

thx for idears.
severin [ Do, 23 August 2007 16:28 ] [ ID #1803224 ]

Re: cron adduser

"Séverin Richard" <severin.richard [at] free.fr> wrote in message
news:46cd998d$0$416$426a74cc [at] news.free.fr...
| Hi,
|
| creating a .php containing
| <? exec( "useradd myuser" ) ?>

kewl! what's your url? i want to hack the hell out of your system and doing
things like that (if open to internet http) is just the ticket!

;^)
Steve [ Do, 23 August 2007 16:35 ] [ ID #1803226 ]

Re: cron adduser

Séverin Richard wrote:
> Hi,
>
> creating a .php containing
> <? exec( "useradd myuser" ) ?>
>
> and called by cron as root does not create a user.
>
>
> What can i change to make it work??
>
> thx for idears.

Sorry, my crystal ball is broken. I don't see any error messages, your
crontable setup or anything else.

I also don't see what other options you might be using with the command
(normally you have more than just a user id!).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Do, 23 August 2007 17:41 ] [ ID #1803227 ]

Re: cron adduser

Post removed (X-No-Archive: yes)
Notifier Deamon [ Do, 23 August 2007 19:54 ] [ ID #1803231 ]

Re: cron adduser

Tom wrote:
> On Thu, 23 Aug 2007 16:28:31 +0200, =?ISO-8859-1?Q?S=E9verin_Richard?= wrote...
>> Hi,
>>
>> creating a .php containing
>> <? exec( "useradd myuser" ) ?>
>>
>> and called by cron as root does not create a user.
>>
>>
>> What can i change to make it work??
>>
>> thx for idears.
>
>
> If you are trying to run a PHP file as a script, rather than loading it as a web
> page, I believe you need set your command up as...
>
> /pathto/php -f file.php
>
> Tom

Not if he's got the file set up to point to the PHP executable, and it's
flagged as an executable in the system.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Fr, 24 August 2007 01:58 ] [ ID #1804186 ]
PHP » alt.php » cron adduser

Vorheriges Thema: PhpBB admin panel is black
Nächstes Thema: copy right