beautypg.com

Configuration example, Switching user level, Overview – H3C Technologies H3C S3100 Series Switches User Manual

Page 16

background image

1-3

z

It is recommended not to change the level of a command arbitrarily, for it may cause inconvenience

to maintenance and operation.

z

When you change the level of a command with multiple keywords or arguments, you should input

the keywords or arguments one by one in the order they appear in the command syntax. Otherwise,

your configuration will not take effect. The values of the arguments should be within the specified

ranges.

z

After you change the level of a command in a certain view to be lower than the default level, change

the level of the command used to enter the view accordingly.

Configuration example

The network administrator (a level 3 user) wants to change some TFTP commands (such as tftp get)

from level 3 to level 0, so that general Telnet users (level 0 users) are able to download files through

TFTP.

# Change the tftp get command in user view (shell) from level 3 to level 0. (Originally, only level 3 users

can change the level of a command.)

system-view

[Sysname] command-privilege level 0 view shell tftp

[Sysname] command-privilege level 0 view shell tftp 192.168.0.1

[Sysname] command-privilege level 0 view shell tftp 192.168.0.1 get

[Sysname] command-privilege level 0 view shell tftp 192.168.0.1 get bootrom.btm

After the above configuration, general Telnet users can use the tftp get command to download file

bootrom.btm and other files from TFTP server 192.168.0.1 and other TFTP servers.

Switching User Level

Overview

Users can switch their user privilege level temporarily without logging out and disconnecting the current

connection; after the switch, users can continue to configure the device without the need of relogin and

reauthentication, but the commands that they can execute have changed.

For example, if the current user privilege level is 3, the user can configure system parameters; after

switching the user privilege level to 0, the user can only execute some simple commands, like ping and

tracert, and only a few display commands.

The switching of user privilege level is temporary, and effective for the current login; after the user relogs

in, the user privilege restores to the original level.

To avoid misoperations, the administrators are recommended to log in to the device by using a lower

privilege level and view device operating parameters, and when they have to maintain the device, they

can switch to a higher level temporarily; when the administrators need to leave for a while or ask

someone else to manage the device temporarily, they can switch to a lower privilege level before they

leave to restrict the operation by others.