{"id":17636,"date":"2023-09-21T12:55:51","date_gmt":"2023-09-21T10:55:51","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=17636"},"modified":"2023-09-21T14:16:26","modified_gmt":"2023-09-21T12:16:26","slug":"linux-permission-basics","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/linux-permission-basics\/","title":{"rendered":"Linux Permission Basics"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg\" alt=\"\" class=\"wp-image-17698\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In this article, we will have a look at the fundamentals of Linux permissions, describing their importance in the context of a <a href=\"https:\/\/contabo.com\/en\/vps\/\">VPS <\/a>environment. We will shed light on the puzzling world of user privileges, file ownership, and access restrictions, providing you with the knowledge needed to safeguard your server and its data.&nbsp;<\/p>\n\n\n\n<p>So, whether you are a web developer, a system administrator, or simply someone curious about the inner workings of VPS management, read on as we describe Linux permissions&nbsp;on your virtual server. By the end of this article, you will be well-equipped to navigate the labyrinth of permissions and confidently secure your VPS.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-understanding-linux-file-permissions\">Understanding Linux File Permissions<\/h2>\n\n\n\n<p>As a system administrator, comprehending file permissions is related to understanding the language of control and access. Linux file permissions are your gatekeepers, dictating who can view, modify, or execute files and directories on your VPS. They are ensuring that only authorized entities can access your data and applications.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-the-three-permission-types\">The Three Permission Types<\/h3>\n\n\n\n<p>At the heart of Linux file permissions are three fundamental attributes, each governing a specific facet of file access:&nbsp;<\/p>\n\n\n\n<p><strong>Read (r):<\/strong> This permission allows a user or group to <strong><em>view <\/em><\/strong>the contents of a file or <strong><em>list <\/em><\/strong>the contents of a directory. It is represented by the letter <em>r<\/em> in permission settings.&nbsp;<\/p>\n\n\n\n<p><strong>Write (w)<\/strong>: The write permission empowers users or groups to <strong><em>modify <\/em><\/strong>the contents of a file or <strong><em>create <\/em><\/strong>and <strong>delete <\/strong>files within a directory. It is symbolized by the letter w.&nbsp;<\/p>\n\n\n\n<p><strong>Execute (x)<\/strong>: Execute permission, represented by the letter x, grants the ability to <strong><em>run scripts or<\/em><\/strong> <strong><em>execute programs<\/em><\/strong>. Without this permission, executing programs or changing into directories is impossible.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-the-three-permission-levels\">The Three Permission Levels<\/h3>\n\n\n\n<p>In Linux, permissions are not granted universally; they are tailored for specific entities. There are three primary permission levels:&nbsp;<\/p>\n\n\n\n<p><strong>User (u)<\/strong>: This level refers to the owner of the file or directory. The user can be the person who created the file or a designated user with specific access rights.&nbsp;<\/p>\n\n\n\n<p><strong>Group (g)<\/strong>: Group permissions apply to a predefined set of users who share access to the file or directory. Groups are an efficient way to manage permissions for multiple users with similar needs.&nbsp;<\/p>\n\n\n\n<p><strong>Others (o)<\/strong>: The &#8220;others&#8221; category includes everyone else who is neither the owner nor a member of the group associated with the file or directory. These permissions are the most open and typically apply to all users on the system.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-numeric-and-symbolic-permission-representation\">Numeric and Symbolic Permission Representation<\/h3>\n\n\n\n<p>Linux permissions can be represented in two formats: numeric and symbolic notation.&nbsp;<\/p>\n\n\n\n<p><strong>Numeric Notation:<\/strong> In this format, each permission is assigned a numeric value. <strong><em>Read <\/em><\/strong>is represented by <strong><em>4<\/em><\/strong>, <strong><em>write<\/em><\/strong> by <strong><em>2<\/em><\/strong>, and <strong><em>execute<\/em><\/strong> by <strong><em>1<\/em><\/strong>. These values are then summed to create a three-digit number, where the <strong>first digit<\/strong> represents <strong><em>user permissions<\/em><\/strong>, the<strong> second digit<\/strong> represents <strong><em>group permissions<\/em><\/strong>, and the <strong><em>third digit<\/em><\/strong> represents <strong><em>others<\/em><\/strong>. For example, a file with permissions of 644 would mean that the user has read and write access (4+2=6), while the group and others have only read access (4).&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Permission&nbsp;<\/td><td>Numeric Value&nbsp;<\/td><\/tr><tr><td>Read&nbsp;<\/td><td>4&nbsp;<\/td><\/tr><tr><td>Write&nbsp;<\/td><td>2&nbsp;<\/td><\/tr><tr><td>Execute&nbsp;<\/td><td>1&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Symbolic Notation<\/strong>: Symbolic notation employs a combination of letters and symbols to represent permissions. r signifies read, w represents write, x means execute and \u2018-\u2019 meaning no permissions. These symbols are used with user, group, and others to set permissions. For instance, <em>rw-r&#8211;r&#8211;<\/em> translates to user=read+write, group=read, others=read.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Symbol&nbsp;<\/td><td>Meaning&nbsp;<\/td><\/tr><tr><td>r&nbsp;<\/td><td>Read permissions&nbsp;<\/td><\/tr><tr><td>w&nbsp;<\/td><td>Write permissions&nbsp;<\/td><\/tr><tr><td>x&nbsp;<\/td><td>Execute permissions&nbsp;<\/td><\/tr><tr><td>&#8211;&nbsp;<\/td><td>No permissions&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In the next section, we will explore the practical applications of these permissions and take a closer look at umask.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-viewing-file-permissions\">Viewing File Permissions<\/h2>\n\n\n\n<p>To gain insight into the existing file permissions on your Linux VPS, you will need to harness a couple of trusty commands. Let us look at how you can use <em>ls -l<\/em> and <em>stat<\/em> to reveal the complex details of your files and directories.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-the-ls-command-nbsp\">Using the ls-command&nbsp;<\/h3>\n\n\n\n<p>The <em>ls <\/em>command, with the <em>-l<\/em> option, is your go-to tool for viewing file permissions in a user-friendly and human-readable format. Simply open your terminal and navigate to the directory containing the file or directory of interest. Then, execute the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l filename_or_directory&nbsp;<\/code><\/pre>\n\n\n\n<p>Replace <em>filename_or_directory<\/em> with the actual name of the file or directory you want to inspect. When you run this command, it will display a detailed listing that includes file permissions, ownership information, file size, modification date, and more.&nbsp;<\/p>\n\n\n\n<p>The output will look something like this:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"475\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-29.png\" alt=\"Linux Permission Basics (ls output)\" class=\"wp-image-17637\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-29.png 859w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-29-600x332.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/image-29-768x425.png 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>lrwxrwxrwx&nbsp;&nbsp; 1 root root&nbsp;&nbsp;&nbsp;&nbsp; 7 Aug 25&nbsp; 2021 filename&nbsp;&nbsp;<\/code><\/pre>\n\n\n\n<p>Here, the <em>lrwxrwxrwx<\/em> portion represents the file&#8217;s permissions in symbolic notation. The user and group values indicate the file&#8217;s owner and group, respectively.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-stat-nbsp\">Using stat&nbsp;<\/h3>\n\n\n\n<p>For a better examination of file permissions and additional file information, you can utilize the <a href=\"https:\/\/wiki.ubuntuusers.de\/stat\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">stat <\/a>command. This command provides a comprehensive overview of a file&#8217;s attributes.&nbsp;<\/p>\n\n\n\n<p>To use stat, simply enter the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>stat &lt;filename_or_directory&gt;&nbsp;<\/code><\/pre>\n\n\n\n<p>Again, replace &lt;filename_or_directory&gt; with the actual name of the file or directory you wish to inspect. The output will present lots of information, including access, modification, and change times, in a structured format.&nbsp;<\/p>\n\n\n\n<p>These commands will empower you to examine and understand the permissions of files and directories on your VPS, an essential skill for managing access and security effectively.&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-use-chmod-to-modify-permissions\">How to Use chmod to Modify Permissions<\/h3>\n\n\n\n<p>The chmod command is used to change file permissions. It allows you to set or modify the permissions for a file or directory using either symbolic notation or octal notation.&nbsp;<\/p>\n\n\n\n<p><strong>Symbolic Notation<\/strong>: This method uses letters (u, g, o, a) and symbols (+, -, =) to add or remove permissions.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Symbol&nbsp;<\/td><td>Meaning&nbsp;<\/td><\/tr><tr><td>u&nbsp;<\/td><td><strong>User <\/strong>(owner of the file)&nbsp;<\/td><\/tr><tr><td>g&nbsp;<\/td><td><strong>Group <\/strong>(users who are in the same group as the file)&nbsp;<\/td><\/tr><tr><td>o&nbsp;<\/td><td><strong>Others <\/strong>(everyone else)&nbsp;<\/td><\/tr><tr><td>a&nbsp;<\/td><td><strong>All <\/strong>(a combination of u, g, and o)&nbsp;<\/td><\/tr><tr><td>+&nbsp;<\/td><td><strong>Adds <\/strong>the specified permission&nbsp;<\/td><\/tr><tr><td>&#8211;&nbsp;<\/td><td><strong>Removes <\/strong>the specified permission&nbsp;<\/td><\/tr><tr><td>=&nbsp;<\/td><td><strong>Sets <\/strong>the specified permission and <strong>removes <\/strong>all others&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example: To add write permission for the user and group and remove all permissions for others on a file named example.txt, you can use the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod ug+w,o-rx example.txt&nbsp;<\/code><\/pre>\n\n\n\n<p><strong>Octal Notation<\/strong>: This method uses three digits (0-7) to represent permissions for the owner, group, and others. Each digit corresponds to read (4), write (2), and execute (1) permissions.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Digits (0-7)&nbsp;<\/td><td>Corresponding Permissions&nbsp;<\/td><\/tr><tr><td>0&nbsp;<\/td><td><strong>No <\/strong>permissions&nbsp;<\/td><\/tr><tr><td>1&nbsp;<\/td><td><strong>Execute <\/strong>(1)&nbsp;<\/td><\/tr><tr><td>2&nbsp;<\/td><td><strong>Write <\/strong>(2)&nbsp;<\/td><\/tr><tr><td>3&nbsp;<\/td><td><strong>Write <\/strong>+ <strong>Execute <\/strong>(2+1)&nbsp;<\/td><\/tr><tr><td>4&nbsp;<\/td><td><strong>Read <\/strong>(4)&nbsp;<\/td><\/tr><tr><td>5&nbsp;<\/td><td><strong>Read <\/strong>+ <strong>Execute <\/strong>(4+1)&nbsp;<\/td><\/tr><tr><td>6&nbsp;<\/td><td><strong>Read <\/strong>+ <strong>Write <\/strong>(4+2)&nbsp;<\/td><\/tr><tr><td>7&nbsp;<\/td><td><strong>Read <\/strong>+ <strong>Write <\/strong>+ <strong>Execute <\/strong>(4+2+1)&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example: To give read and write permissions to the owner, read-only permission to the group, and no permissions to others on a file named example.txt, you can use the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 640 example.txt&nbsp;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-understanding-user-and-group-ownership-nbsp\">Understanding User and Group Ownership&nbsp;<\/h2>\n\n\n\n<p>Ownership plays a significant role in determining file and directory permissions. In this chapter, we will explore how ownership affects permissions and how to check file ownership using the <em>ls -l<\/em> command.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-ownership-affects-permissions-nbsp\">How Ownership Affects Permissions&nbsp;<\/h3>\n\n\n\n<p>In Unix-based systems, every file and directory is associated with <strong>two levels<\/strong> of ownership: <strong>user ownership<\/strong> and <strong>group ownership<\/strong>. Understanding these ownership levels is crucial because they directly influence who can access, modify, or execute a file or directory.&nbsp;<\/p>\n\n\n\n<p><strong>User Ownership<\/strong>: The user who creates a file or directory becomes its owner by default. This user has special privileges and can change the file&#8217;s permissions, read, write, and delete it, regardless of the permissions set for others.&nbsp;<\/p>\n\n\n\n<p><strong>Group Ownership<\/strong>: Each user on a Unix system belongs to one or more user groups. A file or directory can be assigned to a specific group. Users who are part of that group gain group ownership over the file or directory. Group ownership allows group members to access the file according to its group permissions.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-check-file-ownership-using-the-ls-l-command-nbsp\">How to Check File Ownership Using the ls -l Command&nbsp;<\/h3>\n\n\n\n<p>The ls command lists files and directories in a directory. When used with the -l option, it provides a detailed listing that includes ownership information. Here is how you can use it to check file ownership:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l<\/code><\/pre>\n\n\n\n<p>The output of this command will display information in a format like the following:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-rw-r--r--&nbsp; 1 user1&nbsp; group1&nbsp; 1234 Sep&nbsp; 6 10:00 file.txt&nbsp;<\/code><\/pre>\n\n\n\n<p>Here is a breakdown of what each column represents:&nbsp;<\/p>\n\n\n\n<p><strong>&#8211; -rw-r&#8211;r&#8211;:<\/strong> These characters represent the file&#8217;s permissions. The first character indicates the file type (in this case, a regular file), followed by three sets of permissions for the file owner, group owner, and others.&nbsp;<\/p>\n\n\n\n<p>&#8211; 1: This number indicates the number of hard links to the file.&nbsp;&nbsp;<\/p>\n\n\n\n<p>&#8211; <strong>user1<\/strong>: This is the name of the file owner.&nbsp;<\/p>\n\n\n\n<p>&#8211; <strong>group1<\/strong>: This is the name of the group owner.&nbsp;<\/p>\n\n\n\n<p>&#8211; <strong>1234<\/strong>: This is the file size in bytes.&nbsp;<\/p>\n\n\n\n<p>&#8211; <strong>Sep&nbsp; 6 10:00<\/strong>: This is the date and time of the last modification.&nbsp;<\/p>\n\n\n\n<p>&#8211; <strong>file.txt<\/strong>: This is the file or directory name.&nbsp;<\/p>\n\n\n\n<p>In the example above, user1 owns the file file.txt, and it is part of the group group1. The file&#8217;s permissions are rw-r&#8211;r&#8211;, which means that the owner has read and write permissions, but others can only read the file.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-changing-file-ownership\">Changing File Ownership<\/h2>\n\n\n\n<p>Changing file ownership is an essential task, allowing you to transfer ownership of files and directories between users and groups. In the following chapter, we will explore how to change the owner and group of a file or directory using the chown and chgrp commands and provide code examples.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-change-file-ownership-using-chown-nbsp\">How to Change File Ownership using chown&nbsp;<\/h3>\n\n\n\n<p>The chown command changes the owner of a file or directory. It allows you to transfer ownership from one user to another. To use chown, you will need superuser (root) privileges or ownership of the file or directory.&nbsp;<\/p>\n\n\n\n<p>If you want to learn more about the different users on a Linux server, check out our <a href=\"https:\/\/contabo.com\/blog\/a-practical-guide-to-superuser-accounts-sudo-root\/\" target=\"_blank\" rel=\"noreferrer noopener\">Practical Guide to Superuser Accounts, sudo &amp; root<\/a>.&nbsp;<\/p>\n\n\n\n<p>The basic syntax for chown is as follows:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown &#91;new_owner:new_group] &#91;file_or_directory]&nbsp;<\/code><\/pre>\n\n\n\n<p>&#8211; new_owner: The new owner&#8217;s username.&nbsp;<\/p>\n\n\n\n<p>&#8211; new_group: The new group&#8217;s name (optional).&nbsp;<\/p>\n\n\n\n<p>&#8211; file_or_directory: The file or directory whose ownership you want to change.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-change-group-ownership-using-chgrp-nbsp\">How to Change Group Ownership using chgrp&nbsp;<\/h3>\n\n\n\n<p>The chgrp command changes the group ownership of a file or directory. Like chown, you need superuser privileges or ownership of the file or directory to use chgrp.&nbsp;<\/p>\n\n\n\n<p>The basic syntax for chgrp is as follows:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chgrp &#91;new_group]&#91;file_or_directory]<\/code><\/pre>\n\n\n\n<p>&#8211; new_group: The new group&#8217;s name.&nbsp;<\/p>\n\n\n\n<p>&#8211; file_or_directory: The file or directory whose group ownership you want to change.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-examples-for-changing-ownership-nbsp\">Code Examples for Changing Ownership&nbsp;<\/h3>\n\n\n\n<p>Here are some practical code examples for changing ownership of files and directories:&nbsp;<\/p>\n\n\n\n<p>1. <strong>Changing File Ownership with chown<\/strong>:&nbsp;<\/p>\n\n\n\n<p>To change the owner of a file named file.txt to a user named newuser, use the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown newuser file.txt<\/code><\/pre>\n\n\n\n<p>To change both the owner and group ownership of the same file, use:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown newuser:newgroup file.txt<\/code><\/pre>\n\n\n\n<p>2. <strong>Changing Directory Ownership with chown<\/strong>:&nbsp;<\/p>\n\n\n\n<p>To change the owner of a directory named mydir and all its contents to newuser, use the -R option for recursive ownership change:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R newuser mydir&nbsp;<\/code><\/pre>\n\n\n\n<p>3. <strong>Changing Group Ownership with chgrp<\/strong>:&nbsp;<\/p>\n\n\n\n<p>To change the group ownership of a file named file.txt to a group named newgroup, use the following command:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chgrp newgroup file.txt&nbsp;<\/code><\/pre>\n\n\n\n<p>4. <strong>Changing Group Ownership of a Directory with chgrp<\/strong>:&nbsp;<\/p>\n\n\n\n<p>To change the group ownership of a directory named mydir and all its contents to newgroup, use the -R option for recursive group ownership change:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chgrp -R newgroup mydir&nbsp;<\/code><\/pre>\n\n\n\n<p>Always remember to replace newuser and newgroup with the actual usernames and group names you want to assign. Additionally, use sudo to execute these commands with superuser privileges, as changing ownership typically requires elevated permissions. Be cautious when changing ownership, as it can have significant implications for access control and security on your system.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn the Linux Permission Basics. Master file access control and understand how to manage file access control on your Linux system.<\/p>\n","protected":false},"author":50,"featured_media":17698,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[1491],"class_list":["post-17636","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics-150x150.jpg",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics-600x315.jpg",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics-768x403.jpg",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/09\/blog-head_linux-permission-basics.jpg",1200,630,false]},"uagb_author_info":{"display_name":"Tobias Mildenberger","author_link":"https:\/\/contabo.com\/blog\/author\/tobias\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn the Linux Permission Basics. Master file access control and understand how to manage file access control on your Linux system.","authors":[{"term_id":1491,"user_id":50,"is_guest":0,"slug":"tobias","display_name":"Tobias Mildenberger","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/077178d5dce6c3d4c0c0396857a7e544bfdf8adf04145fff5160b33a22e28b1f?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/17636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=17636"}],"version-history":[{"count":2,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/17636\/revisions"}],"predecessor-version":[{"id":17702,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/17636\/revisions\/17702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/17698"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=17636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=17636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=17636"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=17636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}