Yeah I know my script don't care at all about security. I'm keeping it fot
the sake of simplicity.
After making it 'work', I will take a look seriously about security.
So, why it not create user for me?
thanks and regards
I'm not that familiar with sudo, but I suspect it may have to do with
the fact apache is a user without a shell.
look in the sudo log file.
If you don't see anything, look in /var/log/secure and /var/log/messages
If you don't see the problem, log into a root shell. Then run
to become the apache user and try the command and see what happens.
Really though, this isn't a job for sudo.
It's a job for a suid root shell script (I'd suggest perl or python or
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php