The authorization-cmd command configures command-line-based authorization for a user of a specified level.
The undo authorization-cmd command restores the default setting.
By default, command-line-based local authorization is used for all users and user groups at the levels 0 to 15.
Parameter | Description | Value |
---|---|---|
privilege-level |
Specifies the use level. |
The value ranges from 0 to 15. |
mode1 |
Specifies the authorization mode of Uses command line. |
The value is an enumerated type and can be:
|
mode2 |
Specifies the authorization mode of Uses command line. |
The value is an enumerated type and can be:
|
Usage Scenario
When a user logs on to the device through Telnet or SSH, you can set the command line authorization mode to HWTACACS for the user if the user needs to be authorized with command lines. In this manner, each input command needs to pass through HWTACACS authorization. The command can be run only after the command authorization is passed. Otherwise, the HWTACACS server displays messages to inform the user that the command authorization fails and the command cannot be run.
Prerequisites
Before using this command, you must create an authorization scheme and enter the authorization scheme view.
Procedure
If local is configured, and the HWTACACS server does not respond, command-line-based authorization is performed on the local device.
Implementation Procedure
If local is configured, and the HWTACACS server does not respond, command-line-based authorization is performed on the local device.
Follow-up Procedure
If command-line-based authorization is enabled, you must configure the HWTACACS server template and apply the template in the view of the domain to which the user belongs.
Precautions
When you configure command-line-based authorization, note the following items:
When the command-privilege level rearrange command is not run in the system view, to perform command line authentication for users with the authentication level ranging from 3 to 15, you need to: