Example: Security and the command line tools
If you want to enable WAS security, you need to provide the command line tools with authentication information. Without authentication information, the command line tools receive an AccessDenied exception when you attempt to use them with security enabled. There are multiple ways to provide authentication data:
- Most command line tools support a -username and -password option for providing basic authentication data. Specify the user ID and password for an administrative user. For example, use a member of the administrative console users with operator or administrator privileges, or the administrative user ID configured in the user registry. The following example demonstrates the stopNode command, which specifies command line parametersstopNode -username adminuser -password adminpw
- You can place the authentication data in a properties file that the command line tools read. The default file for this data is the sas.client.props file in the properties directory for the WebSphere Application Server.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.