Understanding Linux File Permissions

Understanding Linux File Permissions
Written by sumit JalanAugust 24, 2021
3 min read
Linux Administration
7 VIEWS 1 LIKES 0 DISLIKES SHARE
1 LIKES 0 DISLIKES 7 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
7 VIEWS 1 LIKES 0 DISLIKES SHARE
1 LIKES 0 DISLIKES 7 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
+2 more
2 Blog Posts
7 Discussion Threads
Trending Categories
93
Software12
DevOps34
Frontend Development13
Backend Development13
Server Administration13
Linux Administration12
Data Center14
Sentry11
Terraform15
Ansible9
Docker13
Penetration Testing12
Kubernetes12
NGINX8
JenkinsX10
Jenkins18
SSL6
Ethical-Hacking10
Python8
NodeJs9
RedHat8
Github11
AngularJs15
Google Cloud Platform (GCP)6
SonarQube9
Amazon Web Service (AWS)2
VMware17
Blockchain6
Snipe-IT7