[mdlug] Jboss 7 question
David Wood
dwood169 at gmail.com
Tue Oct 7 16:19:12 EDT 2014
What is the password for. I have seen this with apache when a ssl cert is
used that requires a password.
+1 on Gibs answer, that is how I would do it.
On Tue, Oct 7, 2014 at 4:03 PM, gib at juno.com <gib at juno.com> wrote:
> Perhasp redirect from a password or varible file.
> Add < mypasswordFile.txt
>
> ---------- Original Message ----------
> From: Mathew May <mathewmay1 at wowway.com>
> To: MDLUG's Main discussion list <mdlug at mdlug.org>
> Subject: [mdlug] Jboss 7 question
> Date: Tue, 7 Oct 2014 15:27:50 -0400 (EDT)
>
> 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....
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
> ____________________________________________________________
> Apple's Crazy New Gizmo
> Forget the iPhone 6. Next hit Apple product leaked. (see picture)
> http://thirdpartyoffers.juno.com/TGL3131/5434475ecfc26475e7fd8st03vuc
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
More information about the mdlug
mailing list