Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Common User

Function

Uses the Kunpeng DevKit terminal tool to create a common user.

Syntax

/opt/DevKit/tools/devkit adduser -u <username>

/opt/DevKit/tools/ is the directory for storing the tool. Replace it with the actual directory.

Parameter Description

Table 1 Parameter description

Argument

Parameter

Description

-u

username

Name of the user to be created. The user name must meet the following requirements:

  • Start with a letter.
  • Contain 6 to 32 characters.
  • Contain letters, digits, hyphens (-), or underscores (_).

Example

The following demonstrates how to create a testaccount user. Go to the storage path of the DevKit terminal tool and run the following command:

./devkit adduser -u testaccount

The following information is displayed. Set the password of the new user in the interactive prompts.

Please enter administrator's password:
Please enter user's password:
Please enter user's password again:
Success to add user: testaccount

The password must meet the following complexity requirements:

  • Contain 8 to 32 characters.
  • Contain at least two types of uppercase letters, lowercase letters, digits, and special characters (``~!@#$%^&*()-_=+\|[{}];:'",<.>/?).
  • Cannot contain any space.
  • Cannot be the same as the user name or the user name in reverse order.
  • Cannot be a password in the weak password dictionary.