To add a user to your computer, you can follow these steps:
1.Open Control Panel:Right-click the Start button in the lower-left corner of the desktop and select Control Panel. In the Control Panel, set the View Method to "Small Icon", then locate and click User Account.
2.Manage Other Accounts:On the User Accounts page, click Manage Other Accounts. Here, you can see a list of existing user accounts, and you can select Add a new user in your computer settings.
3.Add a new user:On the Add a new user screen, click Add someone else to this computer, then select I don't have this person's login information, then click Add a user who doesn't have a Microsoft account, enter the username, password, and password prompt in the specified location, and then click Next to complete the addition.
4.Give admin privileges (optional):If you want the new user to have administrator privileges, you can select the account in the user account window and click Properties, then select Group Members and select Administrator in the pop-up window, and finally click OK.
Alternatively, you can add a user account by running the command. Press the Win + R shortcut on your keyboard to open the run dialog box, type "netplwiz" and press enter. In the user account window, select [Add], then click [Sign in without Microsoft account] in the pop-up window, select [Local Account], enter the username and password (password can be left blank), click [Next] after the addition is completed, and finally click [Done] to exit.
On Linux systems such as Ubuntu, you can use the command line to add a new user:
Open Terminal. useadduser
command to add a new user. For example, if you want to add a user named "newuser", you can enter:sudo adduser newuser
You'll be asked to set a password for the new user and re-enter it to confirm.
Next, you can fill in the new user's full name, room number, and other information. This information is optional, if you don't want to fill it in, you can just press enter to skip it.
Once these steps are completed, the new user is added to the system.
If you want to give this new user admin rights, you can add it to thesudo
Group. Use the following command:sudo usermod -ag sudo newuser
If you want to switch to a new user, you can use itsu
Command:su - newuser
Note that in either case, you should ensure that you only give administrator privileges to trusted people, as this may involve system security issues. Overall, the process of adding a new user requires administrator privileges, ensuring that you are already an administrator of the computer before you do these things.