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 refer to Notes
Each of the three permissions are assigned to three defined categories of users. The categories are:
-
owner — The owner of the file or application.
-
"chown" is used to change the ownership permission of a file or directory.
-
group — The group that owns the file or application.
-
"chgrp" is used to change the group permission of a file or directory.
-
others — All users with access to the system. (outised the users are in a group)
-
"chmod" is used to change the other users permissions of a file or directory.
As a task, change the user permissions of the file and note the changes after
ls -ltr
-
Write an article about File Permissions based on your understanding from the notes.
-
Read about ACL and try out the commands
getfacl
andsetfacl
In case of any doubts, post it on Discord Community
Happy Learning