No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change resource_user general

change resource_user general

Function

The change resource_user general command is used to change the configuration of a resource user.

Format

change resource_user general user_id=? { primary_group_name=? | secondary_group_names=? | status_enabled=? } *

Parameters

Parameter

Description

Value

user_id=? The ID of a resource user.

The value ranges from 0 to 900,000.

primary_group_name=? The primary group associated with the resource user.

The value contains 1 to 32 characters.

secondary_group_names=? Secondary group associated with the resource user.

A maximum of 31 secondary group names can be specified, and they must be separated from each other using commas (,).

status_enabled=? Whether the resource user is enable.

The value can be yes or no, where:

  • yes: enable the resource user.
  • no: disable the resource user.

Level

Administrator

Usage Guidelines

None

Example

  • To query a resource user before it is modified, run the following command.

    admin:/>show resource_user general user_id=100006
    User ID : 100006
    User Name : user01
    Description :
    Primary Group ID : 100001
    Primary Group Name : group1
    Secondary Group Names :
    User Type : Create
    Status Enabled : Yes
    Passwd Expired Time(Days):180
  • To modify a resource user's information, run the following command.

    admin:/>change resource_user general user_id=100006 primary_group_name=group2 
    status_enabled=no secondary_group_names=default_group
    Command executed successfully.
  • To query a resource user after it is modified, run the following command.

    admin:/>show resource_user general user_id=100006
    User ID : 100006 
    User Name : user01 
    Description : 
    Primary Group ID : 100002 
    Primary Group Name : group2 
    Secondary Group Names : default_group 
    User Type : Create 
    Status Enabled : No
    Passwd Expired Time(Days):180

System Response

None

Translation
Download
Updated: 2019-04-04

Document ID: EDOC1000084078

Views: 272169

Downloads: 249

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next