08-24-07 12:14 PM
Fredderic wrote:
> On Thu, 23 Aug 2007 16:35:20 +0200,
> Séverin Richard <severin.richard@free.fr> wrote:
>
>
>
>
> Just a guess here... useradd doesn't want keyboard input, for example,
> for the users initial password, does it? Some programs, especially
> those that want passwords, will fail to run if they're not connected to
> a terminal. There's usually options to provide the necessary
> information more directly.
>
>
> Fredderic
I found the solution in another forum:
exec( "/usr/sbin/useradd sdfsf");
works.
The cron user does not have same $PATH than shell, and realpath have to
be used.
[ Post a follow-up to this message ]
|