Re: apache user cannot execute useradd via sudo :(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vuthecuong wrote:



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 and /var/log/httpd/error_log

If you don't see the problem, log into a root shell. Then run

su apache

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 maybe tcl/expect).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux