configuration exclusive by-user-name

Function

The configuration exclusive by-user-name command enables a user to lock the system configuration.

The undo configuration exclusive by-user-name command enables a user to unlock the system configuration.

By default, the system configuration is not locked.

Format

configuration exclusive by-user-name user-name

undo configuration exclusive by-user-name user-name

Parameters

Parameter Description Value
user-name

Specifies the name of a user.

The value is a string of 1 to 253 characters.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config debug

Usage Guidelines

Usage Scenario

Multiple users can access a device and manage it. A user can be a controller or another type of user. If the configuration of a forwarder is modified by a non-controller user, the configurations of the controller and forwarder may be inconsistent. The configuration exclusive by-user-name command can be used to specify the controller to lock the system configuration of a forwarder to avoid the inconsistency.

When multiple users manage a device at the same time, you can specify a user to lock the device. Only this user can modify the device configuration, while others cannot.

Precautions

  • Only one user can lock the system configuration at a time.
  • The user that runs the configuration exclusive by-user-name user-name command to lock the system configuration can be different from the user-name in this command.

For example, User-A can run the configuration exclusive by-user-name User-B command to specify User-B to lock the system configuration.

  • Only users of the management user level can lock and unlock the system configuration. Users of the management user level include:
  • Users of levels 3 to 15 when the command-privilege level rearrange command configuration exists
  • Users of level 3 when the command-privilege level rearrange command configuration does not exist
  • The configuration exclusive by-user-name command locks the device configuration based on the user name. Only the same user name can be used to unlock the device. The configuration exclusive command locks a device based on the session. The device can be unlocked only by the current session. After the session is logged out, the device is unlocked automatically.

Example

# Enable user huawei456 to lock the system configuration.
<HUAWEI> system-view
[~HUAWEI] configuration exclusive by-user-name huawei456
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >