Root sudo? (was Re: Cron Job Failure)

Allen Chen achen at harbourfrontcentre.com
Tue Apr 26 21:28:20 UTC 2005


Mike Burger wrote:

>On Tue, April 26, 2005 12:50 pm, Allen Chen said:
>  
>
>>Hi, all
>>
>>I got another problem with RedHat 9.  The sudo doesn't work any more
>>with root. It hangs. But it still works with other users.
>>
>>I don't if anybody has the same issue or not.
>>
>>Allen.
>>    
>>
>
>First, it's poor form to snarf another topic/thread, and start up a new
>question that's unrelated to the previous.
>
>Having said that, as I'm no longer running RHL9, I can't answer on that
>front...however, I've never run into this.
>
>Realizing, up front, that this doesn't answer your question, I do have
>ask...why would you bother using sudo as root?  The whole point of sudo is
>to be able to run commands as root...if you're already root, why would you
>need to use sudo?
>
>  
>
I'm not using sudo with root. The problem is that the php script forks a 
process using sudo.
Such as the php script:
<?

> exec("sudo /usr/local/bin/setpassword $uid $pass");

?>

Thanks any way.

Allen.




More information about the redhat-list mailing list