Day 6 Task: File Permissions and Access Control Lists by Prashant Chaturvedi
Prashant C.
Generated Revenue of ?500 Cr for Real-Estate with Performance Marketing & Analytics. Generative AI Expert | Product | Growth and Analytics JLL India | Ex NoBroker.in | IIIT Bangalore
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.
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.
领英推荐
-???????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:
-???????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.
Attended prestige institute of management and research
1 年Want to learn
DevOps Engineer at BJS Hub
1 年It’s very impactful