Command Reference Command Line Interface Commands
1.2 privilege
Use this command to attribute the execution rights of a command to a command level in global
configuration mode. Use the no form of this command to restore the default setting.
privilege mode [ all ] [ level level | reset ] command-string
no privilege mode [ all ] [ level level ] command-string
CLI mode of the command to which the execution rights are
attributed.
Specifies the execution right levels (0–15) of a command or
sub-commands
Restores the command execution rights to its default level
Command string to be authorized
Global configuration mode.
The following table lists some key words that can be authorized by the privilege command in CLI
mode. The number of command modes that can be authorized may vary with different devices. In the
global configuration mode, you can use the privilege ? command to list all CLI command modes that
can be authorized.
Global configuration mode.
Interface configuration mode
DHCP address pool configuration mode
DHCP address pool configuration mode
KeyChain configuration mode
KeyChain-key configuration mode
The following example sets the password of CLI level 1 as test and attribute the reload rights to reset
the device:
Ruijie(config)#privilege exec level 1 reload
You can access the CLI window as level-1 user to usef the reload command:
Ruijie>reload ?
LINE Reason for reload
<cr> You can use the key word all to attribute all sub-commands of reload to level-1 users:
Ruijie(config)# privilege exec all level 1 reload