Managing users and their groups
In this recipe, we will learn how to manage your system's users and groups on CentOS 7. Essential user and group managing skills are one of the most important CentOS system administrator fundamentals.
Getting ready
To complete this recipe, you will need a working installation of the CentOS 7 operating system with root privileges and a console-based text editor of your choice.
How to do it...
This recipe shows you how to manage users and groups by learning how to add, delete, and modify them:
To begin this recipe, we log in as root and type the following command to get a list of all the users known to the system:
cat /etc/passwd
.Now, show the root user ID (UID) and group ID (GID):
id root
Next, we will run the following command to add a new user to the system (exchange
your_new_username
with a username of your choice):useradd your_new_username
However, in order to complete this process, you will be expected to provide a suitable password. To do this, type the following...