Configure Access Privilege Levels
Each top-level CLI command and each configuration statement has an access privilege level associated with it. Users can execute only those commands and configure and view only those statements for which they have access privileges. The privilege level for each command and statement is listed in the summary chapter of the part in which that command or statement is described. The access privileges for each login class are defined by one or more permission bits.
To configure access privilege levels, include the
permissionsstatement at the[edit system login class]hierarchy level:[edit system login class]permissions [permissions];In
permissions, specify one or more of the permission bits listed in Table 10. Permission bits are not cumulative, so for each class list all the bits needed, includingviewto display information andconfigureto enter configuration mode. Two forms for the permissions control the individual parts of the configuration:
- "Plain" form—Provides read-only capability for that permission type. An example is
interface.- Form that ends in
-control—Provides read and write capability for that permission type. An example isinterface-control.
Table 10: Login Class Permission Bits
Can clear (delete) information learned from the network that is stored in various network databases (using theclearcommands). Can use therollbackcommand to return to a previously committed configuration other than the most recently committed one.
Example: Configure Access Privilege Levels
Create two access privilege classes on the router, one for configuring and viewing user accounts only and the second for configuring and viewing SNMP parameters only:
[edit]system {login {class user-accounts {permissions [ configure admin admin-control ];}class network-mgmt {permissions [ configure snmp snmp-control ];}}}