Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Users | Users, Roles and The Permissions
course content

Course Content

Linux Basics

UsersUsers

User accounts are an essential part of any Linux system. They allow you to control who can access your system and what they can do. In this guide, we will cover how to create and manage user accounts in Linux.

User Сreation

The useradd command is used to create a new user and set their initial parameters. For example, the following command will create a new user named johndoe with a home directory of /home/johndoe and a primary group of johndoe:

-m: This flag creates a home directory for the user.

This command can also be written without the flag -m. In this case, the user's home directory will not be created.

The home directory in Linux is similar to the "My Documents" folder in Windows. It's designed to store personal files, settings, and user data. Here, you can find documents, photos, music, and other personal files. Additionally, the home directory contains configuration files for many programs and user settings, such as shell configurations, command history, and program configuration files.

The above command allows you to change the password for the specified user <username>. It requires entering the new password twice for confirmation.

This command outputs a list of all users that exist in our system.

This command deletes a user from the system.

Everything was clear?

Section 4. Chapter 2
course content

Course Content

Linux Basics

UsersUsers

User accounts are an essential part of any Linux system. They allow you to control who can access your system and what they can do. In this guide, we will cover how to create and manage user accounts in Linux.

User Сreation

The useradd command is used to create a new user and set their initial parameters. For example, the following command will create a new user named johndoe with a home directory of /home/johndoe and a primary group of johndoe:

-m: This flag creates a home directory for the user.

This command can also be written without the flag -m. In this case, the user's home directory will not be created.

The home directory in Linux is similar to the "My Documents" folder in Windows. It's designed to store personal files, settings, and user data. Here, you can find documents, photos, music, and other personal files. Additionally, the home directory contains configuration files for many programs and user settings, such as shell configurations, command history, and program configuration files.

The above command allows you to change the password for the specified user <username>. It requires entering the new password twice for confirmation.

This command outputs a list of all users that exist in our system.

This command deletes a user from the system.

Everything was clear?

Section 4. Chapter 2
some-alt