Purpose
Command or Action
Sets the privilege level for a command.
privilege mode level level command
Step 2
Example:
Switch(config)#
privilege exec level
•
For
mode
, enter
configure
for global configuration mode,
exec
for
EXEC mode,
interface
for interface configuration mode, or
line
for
line configuration mode.
14 configure
•
For
level
, the range is from 0 to 15. Level 1 is for normal user EXEC
mode privileges. Level 15 is the level of access permitted by the
enable
password.
•
For
command
, specify the command to which you want to restrict
access.
Specifies the password to enable the privilege level.
enable password level level password
Step 3
Example:
Switch(config)#
enable password
•
For
level
, the range is from 0 to 15. Level 1 is for normal user EXEC
mode privileges.
•
For
password
, specify a string from 1 to 25 alphanumeric characters.
The string cannot start with a number, is case sensitive, and allows
spaces but ignores leading spaces. By default, no password is defined.
level 14 SecretPswd14
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 4
Related Topics
Privilege Levels, on page 24
Example: Setting the Privilege Level for a Command, on page 35
Changing the Default Privilege Level for Lines
Beginning in privileged EXEC mode, follow these steps to change the default privilege level for the specified
line:
SUMMARY STEPS
1.
configure terminal
2.
line vty line
3.
privilege level level
4.
end
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
32
OL-29434-01
Controlling Switch Access with Passwords and Privilege Levels
Changing the Default Privilege Level for Lines