Permissions and Ownership

Table of Contents

Permissions and Ownership

Permission Basics

Understand the three primary permission types for files and directories: read (r), write (w), and execute (x). These permissions are assigned to three categories: owner, group, and others

Numerical Representation

Understand the numerical representation of permissions, where each permission type is assigned a value (read = 4, write = 2, execute = 1). The sum of these values represents the overall permission setting.

Viewing Permissions

Use the ls command with the -l option to view detailed information, including permissions, for files and directories. This provides a comprehensive overview of ownership and access rights.


Get the concept of subnetting, a practice that involves dividing an IP network into sub-networks. Learn how subnetting helps optimize network efficiency and facilitates the hierarchical organization of IP addresses.

Changing Permissions

Master the chmod command to change permissions. Use symbolic notation (u for owner, g for group, o for others) or numerical representation to add or remove specific permissions.

Understanding Ownership

Learn the concept of ownership in Linux, where every file and directory has an owner and an associated group. Ownership information is displayed in the output of the ls -l command.

Changing Ownership

Use the chown command to change ownership of a file or directory. This is particularly useful when transferring ownership between users or groups.

Changing Group Ownership

Use the chgrp command to change the group ownership of a file or directory. This allows users to control access rights based on group membership.

Default Permissions and umask

Understand how default permissions are set for newly created files and directories using the umask command. The umask value determines which permissions are subtracted from the default.

Special Permissions

Explore special permissions such as the setuid (s), setgid (s), and sticky bit (t). These permissions have specific roles in enhancing security and controlling access to certain files and directories.

We are providing Best DevOps Courses

what you need to know

in your inbox every morning