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:

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!
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 ...
A Linux operating system is quite different from a Windows operating system. They run off of different open-source operating systems such as Fedora and many more. Although they are not popular amongst regular users, many developers feel that a Linux laptop can...
The Linux operating system has the highest rate of popularity for PCs. It is an open-source code that allows anybody to create their unique operating system. There are many benefits of using the Linux system, including that it is free and stable. Many corporat...
Linux Fedora, often referred to simply as Fedora, is a popular open-source Linux-based operating system that is known for its focus on innovation, community-driven development, and cutting-edge features. Fedora is a free and open-source operating system that i...