<p>By default <a href="http://www-01.ibm.com/software/tivoli/products/license-metric-tool/">ILMT</a>, and WebSphere in general, asks you for a password when running srvstop.sh if security is enabled. That&#8217;s nice if you don&#8217;t trust your users. But, if you have a secured system you may not want to have to lookup the userid the once or twice a year you bring down WebSphere.</p>
<p>On a new install of ILMT, with the bundled WebSphere server, all you have to do is edit the soap.client.props file:<br />
<code></p>
<pre>vi /opt/IBM/LMT/eWAS/profiles/AppSrv01/properties/soap.client.props</pre>
<p></code></p>
<p>And fill in the com.ibm.SOAP.loginUserid and com.ibm.SOAP.loginPassword properties. Now srvstop.sh shouldn&#8217;t prompt you anymore for a username and password. The down-side of this is that the password is in plain text, IBM provides a tool to encrypt that, just run it against the file and property to encrypt:</p>
<p><code></p>
<pre>/opt/IBM/LMT/eWAS/profiles/AppSrv01/bin/PropFilePasswordEncoder.sh /opt/IBM/LMT/eWAS/profiles/AppSrv01/properties/soap.client.props com.ibm.SOAP.loginPassword</pre>
<p></code></p>
<p>Your directories may be different, but you get the idea. The tool will ask if you want to make a backup of the file first, and then encrypt the com.ibm.SOAP.loginPassword property.</p>
{"id":745,"date":"2011-04-27T11:56:00","date_gmt":"2011-04-27T15:56:00","guid":{"rendered":"http:\/\/patrickv.info\/wordpress\/?p=745"},"modified":"2011-04-27T11:56:00","modified_gmt":"2011-04-27T15:56:00","slug":"encrypting-a-default-username-for-stopserver-sh","status":"publish","type":"post","link":"https:\/\/rootuser.ninja\/index.php\/2011\/04\/27\/encrypting-a-default-username-for-stopserver-sh\/","title":{"rendered":"Encrypting A Default Username For stopServer.sh"},"content":{"rendered":"<p>By default <a href=\"http:\/\/www-01.ibm.com\/software\/tivoli\/products\/license-metric-tool\/\">ILMT<\/a>, and WebSphere in general, asks you for a password when running srvstop.sh if security is enabled. That&#8217;s nice if you don&#8217;t trust your users. But, if you have a secured system you may not want to have to lookup the userid the once or twice a year you bring down WebSphere.<\/p>\n<p>On a new install of ILMT, with the bundled WebSphere server, all you have to do is edit the soap.client.props file:<br \/>\n<code><\/p>\n<pre>vi \/opt\/IBM\/LMT\/eWAS\/profiles\/AppSrv01\/properties\/soap.client.props<\/pre>\n<p><\/code><\/p>\n<p>And fill in the com.ibm.SOAP.loginUserid and com.ibm.SOAP.loginPassword properties. Now srvstop.sh shouldn&#8217;t prompt you anymore for a username and password. The down-side of this is that the password is in plain text, IBM provides a tool to encrypt that, just run it against the file and property to encrypt:<\/p>\n<p><code><\/p>\n<pre>\/opt\/IBM\/LMT\/eWAS\/profiles\/AppSrv01\/bin\/PropFilePasswordEncoder.sh \/opt\/IBM\/LMT\/eWAS\/profiles\/AppSrv01\/properties\/soap.client.props com.ibm.SOAP.loginPassword<\/pre>\n<p><\/code><\/p>\n<p>Your directories may be different, but you get the idea. The tool will ask if you want to make a backup of the file first, and then encrypt the com.ibm.SOAP.loginPassword property.<\/p>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-websphere-notes"],"_links":{"self":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/comments?post=745"}],"version-history":[{"count":0,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/posts\/745\/revisions"}],"wp:attachment":[{"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/media?parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/categories?post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rootuser.ninja\/index.php\/wp-json\/wp\/v2\/tags?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}