WAS v8.5 > Reference > Administrator examplesExample: Security and the command line tools
To enable WebSphere Application Server security, provide the command line tools with authentication information.
Without authentication information, the command line tools receive an AccessDenied exception when we 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, we can use a member of the dmgr 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 parameters:
stopNode -username adminuser -password adminpw
- We can place the authentication data in a properties file the command line tools read. The default file for this data is the sas.client.props file in the properties directory for the current profile.
Related
Use command-line tools