cron adduser
am 23.08.2007 16:28:31 von severinHi,
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.
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.
"Séverin Richard"
news:46cd998d$0$416$426a74cc@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!
;^)
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@attglobal.net
==================
Post removed (X-No-Archive: yes)
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@attglobal.net
==================