Adding a User (adduser)
Parameters
Parameter | Description | Value |
---|---|---|
username | Specifies the user to be added. | A string of up to 16 characters meeting the following requirements
|
Usage Guidelines
Only administrators can add users, and the administrator's password is required.
A maximum of 15 users can be added. The default permission of a newly added user is No Access, which supports access to all login interfaces.
A password must be set for the newly added user. The password setting rules vary depending on whether password complexity check and weak password check are enabled. To check whether password complexity check is enabled, run the passwordcomplexity command. To check whether weak password check is enabled, run the weakpwddic command.
- If password complexity check is disabled, the password cannot be empty or exceed 20 characters.
If password complexity check is enabled, the password must meet the following requirements:
- Contain 8 to 20 characters
Contain at least a space or one of the following special characters:
`~!@#$%^&*()-_=+\|[{}];:'",<.>/?
Contain at least two types of the following characters:
- Uppercase letters A to Z
- Lowercase letters a to z
- Digits 0 to 9
- Cannot be the same as the user name or the user name in reverse order.
- Have at least two new characters when compared with the previous password.
- If weak password check is enabled, the password cannot be the same as the passwords contained in the weak password dictionary. (You can run the ipmcset -t user -d weakpwddic -v export command to export the weak passwords from the weak password dictionary.)
Example
# Add user test.
iBMC:/->ipmcset -d adduser -v test
Input your password:
Password:
Confirm password:
Add user successfully.
# Query user information.
iBMC:/->ipmcget -d userlist ID Name Privilege Interface PublicKeyHash State 2 root ADMINISTRATOR Web,SNMP,IPMI,SSH,SFTP,Local,Redfish NA Enabled 3 test NO ACCESS Web,SNMP,IPMI,SSH,SFTP,Local,Redfish NA Enabled 4 NO ACCESS NA Disabled 5 NO ACCESS NA Disabled 6 NO ACCESS NA Disabled 7 NO ACCESS NA Disabled 8 NO ACCESS NA Disabled 9 NO ACCESS NA Disabled 10 NO ACCESS NA Disabled 11 NO ACCESS NA Disabled 12 NO ACCESS NA Disabled 13 NO ACCESS NA Disabled 14 NO ACCESS NA Disabled 15 NO ACCESS NA Disabled 16 NO ACCESS NA Disabled 17 NO ACCESS NA Disabled
The user test is added successfully.