Permissions in Linux: Octal/Absolute mode

a few seconds read

Octal/Absolute mode Permissions

Are specified by adding them in numeric/digit mode, as they are kept in file’s inode. This way previous permission settings are lost and overwritten by the new ones.

Permissions of a file are stored in inode as bits, and they form a construct of 12 bits as follows:

(3 groups * 3 basic permissions) + 3 special permissions = 12 bits in total

Let’s say we have a file with the following permissions: rs-rSxr–

Each permission has a value assigned, to get a clear view, take a look at the tables below:

Usually, octal mode is the fastest and easiest way to set permissions on files/folders, for the example above we have to type in  the command line:

chmode -R 6676 /file/location/example.txt

If more guidance is needed or something is missing, fell free to ask.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

In terms of stability and security, Linux is ranked the most stable operating system and at the same time, it’s quite easy to maintain and support. One of the reasons why Linux web hosting has gained popularity is its easily accessible configuration files and ...
Ubuntu is an open-source operating system developed by the San microsystems. Linux allows users and in this case developers to make changes to the program without prior authorization from the creator. You can gather a deeper understanding of Ubuntu Linux from ...
Microsoft loves Linux so much that its latest operating system is based on Linux. Azure Sphere OS is designed to run on embedded devices and IoT. Source: Microsoft’s Newest OS is Based on Linux – OMG! Ubuntu!
Here is a list that contains one of the most used Linux commands, and a short explanation for them: ls – list – lists files and directories, can be used with a lot of options like: -a, -R, -l, -g, -r; pwd – print working directory – shows the path of the curre...
Linux Directory Map / Structure Root   Path  Description bin/ ( -> usr/bin) Files that can be executed (binary files) used to troubleshot or debug the operating system. boot/ Contains a minimum number of files needed by the operating system to boo...
Many Linux commands deal with sensitive data like system hardware, passwords or operate under exceptional circumstances. Prevents regular users from executing these commands by mistakes and helps to protect data and system integrity. By logging in as root enab...