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
Argument |
Parameter |
Description |
|---|---|---|
-u |
username |
Name of the user to be created. The user name must meet the following requirements:
|
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.
Parent topic: User Management