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

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference 06

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands."
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

Choose at least one of the following three parameters: primary_group_name, secondary_group_names, and status_enabled.

This command does not support OceanStor 2200 V3 storage system.

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-07-22

Document ID: EDOC1000106139

Views: 317525

Downloads: 210

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