From: James Dinkel Date: 2008-05-02T07:02:01+09:00 Subject: Re: Ruby script to run command as root on remote linux syste Ok, a little more testing, and I think I've found the problem. This is in the sudoers file on RHEL 5.0 by default: "Defaults requiretty" So I either need to get rid of that, or somehow get ruby net-ssh to open a tty and execute the command in that. I have no clue if the latter is even possible, and I really don't want to do the former, at least not globally. If I could remove the requiretty option for just this user, or even better would be for just this user AND just this command, then that would be great, and I bet possible. However, I have no idea how to configure sudoers for that. James -- Posted via http://www.ruby-forum.com/.