[mdlug] Jboss 7 question
Mathew May
mathewmay1 at wowway.com
Tue Oct 7 15:27:50 EDT 2014
Hey guys,
Having an issue with JBoss7 on a CentOS 5.7 server. It is setup to run as the non-root user tcatusr. A script, written by someone other than myself, does a user check and if the user is equal to tcatusr is sets a variable of $su=su - tcatusr -c. Then later in the script it will issue the command to stop, start, or restart the JVM. Example from the script: ${su}service jboss_appname stop or ${su} service jboss_appname_start or ${su}service jboss_appname restart depending on the options passed.
The stop command works just fine. With variables filled in it would issues the following: su - tcatusr -c "service jboss_appname stop" . And as I said this work just fine.
When I try to issue the start command, I am prompted for a password. With variables filled in: su - tcatusr -c "service jboss_appname start" . This prompts me for a password to successfully start the JVM.
Can anyone point me in a direction here? Why can I stop the JVM with the tcatusr without having to enter a passwd, but not be able to start the JVM without entering a password?
Banging my head on the wall here....
More information about the mdlug
mailing list