Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u596154002/domains/usbusinessreviews.com/public_html/wp-includes/functions.php on line 6114
How to add new users to your Linux machine - Best Business Review Site 2024

How to add new users to your Linux machine

[ad_1]

zd-linux.jpg

StackCommerce

Linux is a multi-user environment where numerous user accounts can be added and used like most operating systems. However, you might be surprised by how easy it is to create a new user on Linux. To illustrate this, I’m going to walk you through the steps of adding a new user with both a GUI tool and from the command line interface (CLI). Both methods are simple and can be done by anyone with just about any skill level.

Don’t believe me? Let’s get to work and find out.

I’ll be demonstrating first on Ubuntu Desktop 22.04 and then Ubuntu Server 22.04, but the process is quite similar, regardless of the distribution you choose. As far as the GUI environment, every desktop does use a variation on the theme, but once you can create a user from within Ubuntu, you should be able to easily translate that to the like of KDE, Xfce and nearly any of the many Linux desktops.

Also: How to install Ubuntu Linux (It’s easy!)

From the desktop

1. Open Settings

Log into Ubuntu and open the Settings tools, which can be found within the Applications Overview (Figure 1).

The Ubuntu Desktop Applications Overfiew.

Figure 1

The Ubuntu Applications Overview makes it easy to locate the application you need.

Image: Jack Wallen

2. Locate Users

In the left sidebar, scroll down until use see Users (Figure 2).

The Ubuntu Desktop Settings window.

Figure 2

The Users listing is found in the Ubuntu Settings app.

Image: Jack Wallen

Click Users and then click Unlock so you can make changes (Figure 3).

The Ubuntu Desktop add users window.

Figure 3

Unlocking the Users section so new users can be added.

Image: Jack Wallen

3. Add a new user

Click Add User at the top of the screen and then, in the resulting popup (Figure 4), fill out the information for the new user.

The new users details window.

Figure 4

Adding a new user in Ubuntu Desktop Linux.

Image: Jack Wallen

You can then either allow the user to create their own password (they’ll be prompted at first login), or you can set a password for them. If this user needs Admin privileges (so they can do things like install software), click the Administrator button, and they’ll be added to the sudo group. 

Click Add, and the user is set for their first login.

From the command line

1. Log into your server

The first step is to log into your Linux server, either using SSH or, if you have physical access to the server, from the terminal itself. 

2. Add the new user

Once you’ve logged in, create a new user with the command:

Where USERNAME is the name of the user to be added. You’ll be prompted to create a new password for the user, followed by full name, room number, work phone, home phone, and other. You can skip these details (although I would suggest at least adding the full name). After entering the details, you’ll be prompted to OK the new user by typing Y.

3. Giving the new user admin privileges

If you’ve added the new user from the command line, and you want to give that user admin privileges, you must add them to the sudo group (if you’re using a Red Hat-based distribution, that group is wheel). To do this, issue the command:

sudo usermod -aG sudo USERNAME

Where USERNAME is the name of the user, you just added.

4. Forcing the new user to change their password

At that point, the new user can log in with the password you set for them. If you want to force them to change their password upon first login, you could issue the command:

Where USERNAME is the new username you just added.

And that’s all there is to add a new user in Linux, from both the GUI and the command line. As I said, once you know how to add a user from within the Ubuntu GUI, you shouldn’t have much trouble doing so with any desktop. If you do run into trouble with your GUI, you can always turn to the command line option, which is universal for all Linux distributions.

[ad_2]

Source link

slot gacor slot gacor togel macau slot hoki bandar togel slot dana slot mahjong link slot link slot777 slot gampang maxwin slot hoki slot mahjong slot maxwin slot mpo slot777 slot toto slot toto situs toto toto slot situs toto situs toto situs toto situs toto slot88 toto slot slot gacor thailand slot bet receh situs toto situs toto slot toto slot situs toto situs toto situs toto situs togel macau toto slot slot demo slot pulsa slot pragmatic situs toto deposit dana 10k surga slot toto slot link situs toto situs toto slot situs toto situs toto slot777 slot gacor situs toto slot slot pulsa 10k toto togel situs toto slot situs toto slot gacor terpercaya slot dana slot gacor pay4d agen sbobet kedai168 kedai168 deposit pulsa situs toto slot pulsa situs toto slot pulsa situs toto situs toto situs toto slot dana toto slot situs toto slot pulsa toto slot situs toto slot pulsa situs toto situs toto situs toto toto slot toto slot slot toto akun pro maxwin situs toto slot gacor maxwin slot gacor maxwin situs toto slot slot depo 10k toto slot toto slot situs toto situs toto toto slot toto slot toto slot toto togel slot toto togel situs toto situs toto toto slot slot gacor slot gacor slot gacor situs toto situs toto cytotec toto slot situs toto situs toto toto slot situs toto situs toto slot gacor maxwin slot gacor maxwin link slot 10k slot gacor maxwin slot gacor slot pulsa situs slot 10k slot 10k toto slot toto slot situs toto situs toto situs toto bandar togel 4d toto slot toto slot situs toto toto slot toto togel situs toto link situs toto situs toto toto slot situs toto slot gacor https://thebharatschool.com/ bandar togel bandar togel bandar togel