9. Managing CentOS 8 Users and Groups
During the installation of CentOS 8, the installer created a root, or superuser account, and required that a password be configured. The installer also provided the opportunity to create a user account for the system. We should not lose sight of the fact that CentOS 8 is actually an enterprise class, multi-user and multi-tasking operating system. In order to use the full power of CentOS 8, therefore, it is likely that more than one user will need to be given access to the system. Each user should have his or her own user account login, password, home directory and privileges.
Users are further divided into groups for the purposes of easier administration and those groups can have different levels of privileges. For example, you may have a group of users who work in the Accounting department. In such an environment you may wish to create an accounts group and assign all the Accounting department users to that group.
In this chapter we will cover the steps to add, remove and manage users and groups on a CentOS 8 system. There are a number of ways to manage users and groups on a CentOS 8 system, the most common options being command-line tools and the Cockpit web interface. In this chapter we will look at both approaches.