Monday, February 14, 2011

sudoers require tty in RHEL5 prohibits use of sudo in rc scripts

Since the scripts are not run from a login shell, you sudo call will not work. This can be fixed by commenting out the 'requiretty' option in the /etc/sudoers file on RHEL5.

The default option is 'off' anyway.

No comments:

Post a Comment