On Tue, 26 Apr 2005, Allen Chen wrote:
Mike Burger wrote:
I'm not using sudo with root. The problem is that the php script forks a process using sudo.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?
Such as the php script:
<?
exec("sudo /usr/local/bin/setpassword $uid $pass");
?>
Thanks any way.
Seems to me, then, that you should have "apache" as the user in the sudoers file, now root...httpd, and by extension, PHP, run as user apache.
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
To be notified of updates to the web site, visit http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a message to:
site-update-request@xxxxxxxxxxxxxxxxx
with a message of:
subscribe
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list