Permissions in Linux: Octal/Absolute mode

a few seconds read

Linux_logo_errorbits.com

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 ...
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...
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!
Linux Mini PC is making in-roads to most computer enthusiasts homes and work lately ad if you look at these machines, you can easily understand why. The personal computer or as we know it PC, became an ubiquitous concept. It is not only for the geeks anymore. ...
In this first script I will show you all the details and preparations that you will need to do prior creating an running your first Linux script. I will use VIM text editor (see the tutorial in the link), but you can use any editor that you might like.