Adding a User (adduser)
Function
The adduser command is used to add a user.
Format
ipmcset [-t user] -d adduser -v <username>
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.
The newly added SSH user is disabled by default. For details about how to enable an SSH user, see Setting User Status (user -d state).
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 Querying and Setting the Status of the Password Complexity Check Function (passwordcomplexity) command. To check whether weak password check is enabled, run the Setting Weak Password Check State (weakpwddic) command.
- If password complexity check is disabled, the password cannot be empty or exceed 20 characters. If the password contains less than eight characters, the user cannot use the SNMPv3 interface.
- 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 Exporting the Weak Password Dictionary (weakpwddic -v export) command to export the weak passwords from the weak password dictionary.)
The default password Admin@9000 is in 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.