Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Common User

Function

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

Syntax

1
/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

Command

Parameter

Description

-u

username

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

  • Start with an English letter.
  • Contain 6 to 32 characters.
  • Allow letters, digits, hyphens (-), and 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:

1
./devkit adduser -u testaccount

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

1
2
3
4
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 the following characters: uppercase letters, lowercase letters, digits, and special characters `~!@#$%^&*()-_=+\|[{}];:'",<.>/?
  • Cannot contain any spaces.
  • Cannot be the same as the user name or the user name spelled in reverse order.
  • Cannot be a password in the weak password dictionary.