The user privilege level command configures the command level for the user interface.
The undo user privilege level command restores the default command level.
By default, users logging in from a VTY user interface can use commands at Level 0. The default command level for the console port on the user interface is 15 when the command-privilege level rearrange command is run, whereas is 3 when the command-privilege level rearrange command is not run.
Parameter | Description | Value |
---|---|---|
level |
Specifies a command level. |
If the command-privilege level rearrange configuration exists, the value of level ranges from 0 to 15. If the command-privilege level rearrange configuration does not exist, the value of level ranges from 0 to 3. If the command-privilege level rearrange command configuration is changed, the value of level changes based on the level mapping.
|
Usage Scenario
If the command level configured on the user interface is inconsistent with the actual level, the actual level is considered as the valid level. For example, the command level corresponding to user 001 is 3 but the command level configured on VTY 0 for the user 001 is 2. When the user logs in to the system through VTY 0, it can use the commands of level 3 or below level 3.
Precautions
If precise management of user rights is required, run the command-privilege level command to enhance the command level.
<HUAWEI> system-view [~HUAWEI] user-interface vty 0 [*HUAWEI-ui-vty0] user privilege level 2
<HUAWEI> system-view [~HUAWEI] user-interface console 0 [~HUAWEI-ui-console0] user privilege level 2