Day 6 Tasks: 6/90 Days
Pranav Lahitkar
Master of Computer Applications ??25' RHCSA | NETWORKING | AWS | DevOps | JAVA | DBMS
Day 6 Task: File Permissions and Access Control Lists
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.
Each of the three permissions are assigned to three defined categories of users. The categories are:
********************************************************************
o change directory permissions in Linux, use the following:
Note that “r” is for read, “w” is for write, and “x” is for execute.?
This only changes the permissions for the owner of the file.
********************************************************************
There are three options for permission groups available to you in Linux. These are
********************************************************************
There are three kinds of file permissions in Linux:
More ways to manage permissions::
Here's a more comprehensive list of ways you can manage file permissions, groups, and ownership beyond the basic commands listed at the top of this guide.?
How to Change Directory Permissions in Linux for the Group Owners and Others::
The command for changing directory permissions for group owners is similar, but add a “g” for group or “o” for users:
To change directory permissions for everyone, use “u” for users, “g” for group, “o” for others, and “ugo” or “a” (for all).
领英推荐
********************************************************************
Group Permissions::
By issuing these commands, you can change groups of files and directories in Linux.?
Note that the group must exit before you can assign groups to files and directories.
********************************************************************
Changing ownership in Linux
Another helpful command is changing ownerships of files and directories in Linux:
These commands will give ownership to someone, but all sub files and directories still belong to the original owner.
You can also combine the group and ownership command by using:
********************************************************************
Changing Linux permissions in numeric code
You may need to know how to change permissions in numeric code in Linux, so to do this you use numbers instead of “r”, “w”, or “x”.
********************************************************************
Permission numbers are:
in short it is combinition of 0 1 2 4 numeric commands