How to create your own account after remotely connecting to a Linux server using vscode

1. Open the Terminal window

Insert image description here

2. Create a new user account in the terminal

(Assuming the user name you want to create is "newuser") During the command execution, you will need to provide the new user's password. Follow the prompts.

Insert image description here
First enter the login administrator account password.
Insert image description here
Enter the password of the created user and repeat the password.

3. Add permissions to the newly created user

In a terminal connected to the Linux server, use the following command with administrator privileges to add the new user to the sudo group (replace new-username with the username you created)

sudo usermod -aG sudo new-username

Guess you like

Origin blog.csdn.net/summertime1234/article/details/131769086