Step

Command

Remarks

 

 

By default, the user privilege level

5. Configure the user privilege

 

for users logged in through the

user privilege level level

console user interface is 3, and

level.

 

that for users logged in through the

 

 

 

 

other user interfaces is 0.

 

 

 

To configure the user privilege level directly on a user interface that uses the none or password authentication mode:

Step

 

Command

Remarks

1.

Enter system view.

system-view

N/A

 

 

 

 

2.

Enter user interface view.

user-interface { first-num1

 

[ last-num1] { console vty }

N/A

 

 

first-num2 [ last-num2 ] }

 

 

 

 

 

3.

Configure the authentication

 

Optional.

 

By default, the authentication

 

mode for any user who uses

authentication-mode { none

 

the current user interface to

password }

mode for VTY user interfaces is

 

log in to the device.

 

scheme, and no authentication is

 

 

 

needed for console users.

 

 

 

Optional.

4.

Configure the privilege level

 

By default, the user privilege level

 

of users logged in through the

user privilege level level

for users logged in through the

 

current user interface.

 

console user interface is 3, and

that for users logged in through the other user interfaces is 0.

For example:

# Display the commands a Telnet user can use by default after login.

<Sysname> ?

User view commands:

display

Display current system information

ping

Ping function

quit

Exit from current command view

rsh

Establish one RSH connection

ssh2

Establish a secure shell client connection

super

Set the current user priority level

telnet

Establish one TELNET connection

tftp

Open TFTP connection

tracert

Trace route function

#Configure the device to perform no authentication for Telnet users, and to authorize authenticated Telnet users to use level-0 and level-1 commands. (Use no authentication mode only in a secure network environment.)

<Sysname> system-view

[Sysname] user-interface vty 0 4 [Sysname-ui-vty0-4] authentication-mode none

[Sysname-ui-vty0-4] user privilege level 1

135