Command Reference CLI Authorization
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 execution rights of a command to
the default setting.
privilege mode [ all ] [ level level | reset ] command-string
no privilege mode [ all ] [ level level ] command-string
Parameter
Description
Parameter Description
mode
CLI mode of the command to which the execution rights are
attributed.
all
Command alias
level
Specifies the execution right levels (0–15) of a command or
sub-commands
reset
Restores the command execution rights to its default level
command-string:
Command string to be authorized
Defaults
N/A.
Command
Mode
Global configuration mode.
Usage Guide 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.
Mode Descripton
config Global configuration mode.
exec Privileged EXEC mode
interface Interface configuration mode
ip-dhcp-pool DHCP address pool configuration mode
ip-dhcp-pool DHCP address pool configuration mode
keychain KeyChain configuration mode
keychain-key KeyChain-key configuration mode
Configuration
Examples
#Set the password of CLI level 1 as test and attribute the reload rights to reset the device:
Ruijie(config)#enable secret level 1 0 test
Ruijie(config)#privilege exec level 1 reload
After the above setting, you can access the CLI window as level-1 user to use
the reload command:
Ruijie>reload ?
LINE Reason for reload
<cr>