Understanding Linux File Permissions

Understanding Linux File Permissions
Written by sumit JalanAugust 24, 2021
3 min read
Linux Administration
15 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 15 VIEWS SHARE
sumit Jalan

Devops Engineer

This article explains the basic Linux permissions model and what the numbers corresponding to the permissions mean.

In Linux, access to the files is controlled by the operating system using file permissions, attributes, and ownership. Understanding the Linux file system permissions model allows you to restrict access to files and directories only to authorized users and processes and make your system more secure.

Each file is owned by a particular user and a group and assigned with permission access rights for three different classes of users:

  • The file owner.
  • The group members.
  • Others (everybody else).

There are three file permissions types that apply to each user class and allows you to specify which users are allowed to read the file, write to the file, or execute the file. The same permission attributes apply for both files and directories with a different meaning:

  • The read permission.
    • The file is readable. For example, when the read permission is set, the user can open the file in a text editor.
    • The directory’s contents can be viewed. The user can list files inside the directory with the ls command.
  • The write permission.
    • The file can be changed or modified.
    • The directory’s contents can be altered. The user can create new files , delete existing files , move files , rename files ..etc.
  • The execute permission.
    • The file can be executed.
    • The directory can be entered using the cd command.

File permissions can be viewed using the ls command.

Linux
permission
15 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 15 VIEWS SHARE
Was this blog helpful?
You must be Logged in to comment
Code Block

1 Comments

Devendar Yadav

helpful blog

sumit Jalan
Devops Engineer
+3 more
2 Blog Posts
7 Discussion Threads
Trending Categories
15
Software39
DevOps45
Frontend Development24
Backend Development18
Server Administration17
Linux Administration24
Data Center24
Sentry24
Terraform21
Ansible29
Docker28
Penetration Testing14
Kubernetes16
NGINX19
JenkinsX17
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan