Skip to Content
Mastering Linux Security and Hardening
book

Mastering Linux Security and Hardening

by Donald A. Tevault
January 2018
Intermediate to advanced
376 pages
8h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening

Creating a user group and adding members to it

So far, I've been doing all of the demos inside my own home directory, just for the sake of showing the basic concepts. But, the eventual goal is to show you how to use this knowledge to do something more practical, such as controlling file access in a shared group directory. The first step is to create a user group and to add members to it.

Let's say that we want to create a marketing group for members of—you guessed it—the marketing department:

[donnie@localhost ~]$ sudo groupadd marketing[sudo] password for donnie:[donnie@localhost ~]$

Let's now add some members. You can do that in three different ways:

  • Add members as we create their user accounts
  • Use usermod to add members that already have ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Security and Hardening, The Practical Security Guide

Linux Security and Hardening, The Practical Security Guide

Jason Cannon
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781788620307Other