You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Instance configuration
Creating accounts to log in to ECS instances
Copy page
Download PDF
Creating accounts to log in to ECS instances
Linux instances use the root administrator account for login by default, and Windows instances use the Administrator account. Both have the highest administrative privileges of the operating system. To enhance instance security and manage user permissions hierarchically, you can create accounts in the instance by following this guide.​
Create account in Linux instance​
In the example provided in this topic, CentOS Stream 8 is used.​
​
Login with password
Login with key
​
  1. Log in to the instance as the root administrator account.​
tip​
You can create new accounts only as the root account or an account with sudo permissions.​
  1. Execute the following command to create the new account.​
  • ​
    useradd <new account name>​
    ​
  1. Execute the following command to set the new account password, and enter the password twice as prompted to confirm the password.​
  • ​
    passwd <new account name>​
    ​
tip​
You can also execute this command to change the password by resetting the password.​
  1. Log in to the instance again as the new account via password.​
  1. Click "Confirm". If the following information is returned, you have logged in to the instance as the new account.​
  • ​alt​​
​
Create account in Windows instance​
In the example provided in this topic, the Chinese edition of Windows Server 2022 is used.​
  1. Log in to the instance with the Administrator account.​
tip​
You can create new accounts only with the Administrator account or an account granted administrator permissions.​
  1. Select "Start > Settings > Accounts".​
  1. Select "Other people > Add someone else to this PC".​
  1. Select "Users > More Actions > New user...".​
  1. Enter the username and password of the new account.​
  1. Click the "Create" button to close the current window. Then, you can view the newly created account.​
  1. Click "Groups", find the three groups in the picture below, and then perform as follows in sequence.​
  1. Select the item, right-click, and then choose "Add to Group...".​
  1. Click "Add...", enter the name of the newly created account, and click "Check Names". Then, the information of the new account appears.​
  1. Click "OK" twice. Then, the new account is created.​
  1. Log in to the instance again as the new account via password.​
  1. Click "Confirm" to log in to the instance as the new account.​
Last updated: 2026.06.18 17:49:49