Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Jboss application startup and shutdown of BMC-IDM asks for password (called keystore password, some Java stuff).

How to automate with init script?

Stop application

Suite system password:

start application

-Didm.suite.home=/opt/jboss-app/bmc/idm/idm-suite7.5 -Dlog4j.configuration=-there-aint-no-such-file- -Djava.awt.headless=true -Didoox.debug.logger=log4j -Xms1024m -Xmx1024m -XX:MaxPermSize=258m -XX:PermSize=128m -Doracle.home=/opt/jboss-app/oracle/product/10.2.0/client_1 -Dess.root=/opt/jboss-app/bmc/idm/idm-suite7.5/ess_api

Suite system password:

Tried with < password-file but no luck

share|improve this question

2 Answers 2

According to the Oracle-IDM documentation this should happen only once during startup. Afterwards it should use the encrypted stored password.

Update 2012-11-13: I think that BMC-IDM must have a similar mechanism. Try to start the Application with strace -e open -f I would expect to see a failed open just before the password gets asked.

That will probably the file where the password needs to be stored to.

Update 2014-02-15: Use truss on Solaris.

share|improve this answer
It true that we only need to give password once at startup. But wish to automate that. We don't use Oracle-IDM, we use BMC "Identity Management Suite" if it does matter. –  Fyodor Nov 12 '12 at 8:40
@fyodor78 the product matters, indeed. I will update your question with that information. From the path I thought you were using Oracle-IDM... I will update my answer as well. –  Nils Nov 13 '12 at 21:19
it's a Solaris 10 box, so there is no "strace". –  Fyodor Nov 14 '12 at 8:17
Try alternative, called truss… –  bbaja42 Feb 15 '14 at 13:55
@bbaja42 Right - that was strace on solaris. I updated my answer. This was an opensource addon for Solaris afaik. –  Nils Feb 15 '14 at 21:57

It's not about the script, it's about the keystore.

When you define a keystore that's protected by a password, you need to supply this password with the following line:

where KeyStorePass is the password protecting the keystore (by default changeit).

So, edit the script and modify it to add this line. Be careful and protect the script for being read by undesired users.

Check the password of your keystore with:

keytool -list -keystore /opt/jboss-app/bmc/idm/idm-suite7.5/security/keystore/idm.keystore

It will ask for the keystore password and list the PK in it.

Hope this helps, Regards.

share|improve this answer
Check the password of your keystore with: –  periket2000 Mar 20 '14 at 8:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.