Member-only story
Linux Tutorial: Managing Users and Groups
How to create, read, update, and delete users and groups from the command line
If you are not a medium member, you can read this story for free here
Introduction
In the previous tutorial, we learned that everything in Linux revolves around one thing, FILES. Well, users and groups are the entities responsible for manipulating those files. This tutorial is a basic introduction to managing users and groups through the command line interface (CLI). If you're coming from a backend engineering role, you may be familiar with CRUD operations. I have organized this tutorial to show you how to perform CRUD operations on users and groups from the CLI. By the end of this tutorial, you will know how to add new users, manage groups, modify users and groups, and delete users and groups when necessary. In doing so, you’ll gain a solid foundation in user and group management — a core aspect of Linux system administration.
Creating Users and Groups
First, let’s create a group called web admin.
groupadd web-adminNow, let’s create a user named rob. Later in this tutorial, we will add that user to the newly created group but for now, let’s look at the useradd…








