Day 6 Task: File Permissions and Access Control Lists by Prashant Chaturvedi

Day 6 Task: File Permissions and Access Control Lists by Prashant Chaturvedi

Today is more on Reading, Learning and Implementing File permissions

The concept of Linux File permission and ownership is important in Linux. Here, we will be working on Linux permissions and ownership and will do tasks on both of them. Let us start with the Permissions.


  • Create a simple file and do ls -ltr to see the details of the files



Here we can see, in the above screenshot, I have created a simple script file and given the permissions to the specific file as “777”.

Firstly, we need to understand, how to change permissions in numeric code in Linux, so you need to use numbers instead of “r”, “w”, or “x”.

·???????0 = No Permission

·???????1 = Execute

·???????2 = Write

·???????4 = Read

Permission numbers are:

·???????0 = ---

·???????1 = --x

·???????2 = -w-

·???????3 = -wx

·???????4 = r-

·???????5 = r-x

·???????6 = rw-

·???????7 = rwx

chmod 777 script.sh stands,


7 (4+2+1) for the user, to provide read, write and execute access.

7 (4+2+1) for the owner, to provide read, write and execute access.

7 (4+2+1) for others, to provide read, write and execute access.


  • Write an article about File Permissions based on your understanding.

-???????As per my understanding, there are three types of permission categories in Linux, i.e

·???????Read (r)

·???????Write (w)

·???????Execute (x)


And these permissions can be implemented on,

·???????Users (u)

·???????Groups (g)

·???????Others (o)


And instead of Read, Write and Execute, we can give permissions with numeric values, as explained in 1st question.


How we can set the permissions in the numeric format:

  • Read about ACL and try out the commands getfacl and setfacl.

-???????getfacl

-???????setfacl


#Linux #FilePermissions #AccessControlLists#DevOps, #Automation, #ContinuousIntegration, #ContinuousDelivery, #Containerization, #Docker, #Kubernetes, #InfrastructureAsCode, #CloudComputing, #Serverless, #CICD, #Agile, #DevSecOps, #Git, #VersionControl, #Microservices, #Monitoring, #Scalability, #Deployment, #ReleaseManagement, #ConfigurationManagement, #orchestration, #SiteReliabilityEngineering, #AutomationTools, #ContainerOrchestration, #InfrastructureAutomation, #DevOpsCulture, #DevOpsEngineer, #DevOpsBestPractices #DevOpsCommunity.








neha rathi

Attended prestige institute of management and research

1 年

Want to learn

shashank singh

DevOps Engineer at BJS Hub

1 年

It’s very impactful

要查看或添加评论,请登录

Prashant C.的更多文章

社区洞察

其他会员也浏览了