Sitemap
DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.

Member-only story

Linux Tutorial: Managing Users and Groups

How to create, read, update, and delete users and groups from the command line

4 min readDec 18, 2024

--

If you are not a medium member, you can read this story for free here

Press enter or click to view image in full size

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-admin

Now, 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…

--

--

Robert Campbell
Robert Campbell

Written by Robert Campbell

I am a Data Scientist / Backend Engineer here to teach technical concepts through the lens of sports.

DevOps.dev
DevOps.dev

Published in DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.