I'm new with Sun Application Server. I'm using Sun Java System Application Server 9.0. Does any one know how to configure Sun Application server not to prompt for admin password when execute command from a command line? Thanks a lot!
Thanks. It's the right way, but the password in the /.asadminpass file is in encrypted. How can I write my password into this file. I only know the plain text of password, how can I find out the encrypted form of this plain text?
Thanks very much!
Don't try to use the adminpass file directly.
Use the <install-dir>/bin/asadmin login command. After you do that, you will not have to provide username or admin password when you run your asadmin commands
Chinmayee is correct.
There are several ways to make you not prompt for the admin password on admin commands. I suggest the best one below:
- Create a file named admin.password.
- Secure this file on your platform. e.g. On Solaris you can do chmod 600 admin.password
- asadmin <any-command> --passwordfile <path to admin.password>
The asadmin login functionality also works, but that needs server to be running and it is supported on AS 9.0 onwards.