Book Image

Mastering Linux Security and Hardening

By : Donald A. Tevault
Book Image

Mastering Linux Security and Hardening

By: Donald A. Tevault

Overview of this book

This book has extensive coverage of techniques that will help prevent attackers from breaching your system, by building a much more secure Linux environment. You will learn various security techniques such as SSH hardening, network service detection, setting up firewalls, encrypting file systems, protecting user accounts, authentication processes, and so on. Moving forward, you will also develop hands-on skills with advanced Linux permissions, access control, special modes, and more. Lastly, this book will also cover best practices and troubleshooting techniques to get your work done efficiently. By the end of this book, you will be confident in delivering a system that will be much harder to compromise.
Table of Contents (15 chapters)
Title Page
Packt Upsell
Contributors
Preface

Chapter 6. Access Control Lists and Shared Directory Management

In the previous chapter, we reviewed the basics of Discretionary Access Control. In this chapter, we'll take our discussion of DAC a step further. We'll look at some more advanced techniques that you can use to make DAC do exactly what you want it to do.

Topics in this chapter include:

  • Creating an access control list (ACL) for either a user or a group
  • Creating an inherited ACL for a directory
  • Removing a specific permission by using an ACL mask
  • Using the tar --acls option to prevent loss of ACLs during a backup
  • Creating a user group and adding members to it
  • Creating a shared directory for a group, and setting the proper permissions on it
  • Setting the SGID bit and the sticky bit on the shared directory
  • Using ACLs to allow only certain members of the group to access a file in the shared directory