< Home

state (local user view)

Function

The state command activates or deactivates the current user.

Format

state { active | block }

Parameters

Parameter Description Value
active Indicates that the user is in active state. -
block Indicates that the user is in inactive state. -

Views

Local user view

Default Level

2: Configuration level

Usage Guidelines

A new user is in active state by default.

To cancel the Internet access permission of a local online user temporarily, you can deactivate the user without deleting the user configuration.

The device processes only the authentication requests initiated by the users in active state. If you deactivate an online user, the online user is forced to log out.

Example

# Deactivate user test.

<sysname> system-view
[sysname] user-manage user test
[sysname-localuser-test] state block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >