Chapter 3. Local Filesystem Security

In this chapter, we will discuss the following:

  • Viewing file and directory details using the ls command
  • Changing the file permissions using the chmod command
  • Implementing access control list (ACL)
  • File handling using the mv command (moving and renaming)
  • Install and configure a basic LDAP server on Ubuntu

Viewing file and directory details using the ls command

The ls command is used to list files in a directory, and it is similar to the dir command in DOS. This command can be used with various parameters to give different results.

Getting ready

Since the ls command is a built-in command of Linux, we don't need to install anything else to use it.

How to do it…

Now, let's take a look at how we can use ls in different ways ...

Get Practical Linux Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.