Create a new user and add administrator permissions in ubuntu

1. Ctrl+Alt+T to open the terminal, enter sudo adduser ubuntu (ubuntu is the new user name I created), press Enter, enter the password, enter the password of the new user according to the prompts, and prompt to enter the information, just press Enter.
Add user: sudo adduser ubuntu

Insert picture description here

Insert picture description here2. Enter sudo adduser ubuntu sudo, and give the new user the authority of the administrator.
Insert picture description here
3. Switch to the new user, Ctrl+Alt+T to open the terminal, enter sudo su to check whether the addition of administrator permissions is successful, as shown in the figure below.
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43030934/article/details/112989137