![]() ![]() There is a special permission option for each access level discussed previously. Special permissions allow for additional privileges over the standard permission sets (as the name suggests). Special permissions make up a fourth access level in addition to user, group, and other. Now that you understand the basics of permission calculation in Linux, let's look at the special permissions included in the OS. ![]() To put this into the command syntax, it looks like this: ~]$ chmod 650 test.txt The group's permissions are: r-x or 4+1= 5.The user's permissions are: rw- or 4+2= 6.Let's interpret this permissions example: -rw-r-x. This is calculated on a per access level basis. If the execute permission should be set, add 1.If the write permission should be set, add 2.If the read permission should be set, add 4. ![]() To determine what each digit is, we use the following: There are three access levels-user, group, and others. Here, from left to right, the character # represents an access level. It is based on the following syntax: ~]$ chmod # file | directory The numeric method is, in my experience, the best way to learn and practice permissions.
0 Comments
Leave a Reply. |