R2511-HP MSR Router Series Security Command Reference(V5)

55
Examples
# Place local user user1 in blocked state.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1] state block
Related commands
local-user
user-group
Use user-group to create a user group and enter its view.
Use undo user-group to remove a user group.
Syntax
user-group group-name
undo user-group group-name
Views
System view
Default command level
3: Manage level
Parameters
group-name: Specifies the user group name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
A user group consists of a group of local users and has a set of local user attributes. You can configure
local user attributes for a user group to implement centralized management of user attributes for the local
users in the group. Configurable user attributes include password control attributes and authorization
attributes.
A user group with one or more local users cannot be removed.
The system predefined user group system cannot be removed, but you can modify its configuration.
Examples
# Create a user group named abc, and enter its view.
<Sysname> system-view
[Sysname] user-group abc
[Sysname-ugroup-abc]
Related commands
display user-group
validity-date
Use validity-date to set the validity time of a local user.
Use undo validity-date to remove the configuration.