Start and Shutdown operations fail for EAP instance from JON when sudo is used as script prefix
Issue
- sudo asking for password
- Using script prefix of
/usr/bin/sudo -u useriddoes not appear to work becausesudostill asks for a password even though the user who started the platform's agent has valid sudo rights - Start and stop script for EAP instance fail to work with
Script Prefixdefined as/usr/bin/sudo -u userid
Environment
- JBoss Operations Network (JON) 2.3
- JBoss Enterprise Application Platform (EAP) 4.2, 4.3, 5.0
- Red Hat Enterprise Linux 4, 5
-
/etc/sudoersconfigured to allow JON Agent user toRunAsanother user with no password requiredjonadmin jonagent-host=(jbossadmin) NOPASSWD: /opt/jboss-eap-4.3/jboss-as/bin/*MyConfig*.sh -
JBoss AS Server resource configured with
- Script Prefix:
/usr/bin/sudo -u jbossadmin - Start Script:
bin/start-MyConfig.sh - Stop Script:
bin/stop-MyConfig.sh
- Script Prefix:
start-MyConfig.shandstop-MyConfig.shscripts which invoke standardbin/run.shandbin/shutdown.sh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
