{"id":1179,"date":"2018-12-29T21:27:37","date_gmt":"2018-12-29T21:27:37","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=1179"},"modified":"2021-11-14T23:16:03","modified_gmt":"2021-11-14T23:16:03","slug":"linux-chmod-command","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/","title":{"rendered":"Linux CHMOD Command"},"content":{"rendered":"<p>In Unix-like system, which includes Linux, there are sets of rules for each file, which defines who can access that file and how they can access that file. These rules are called permissions or <strong>modes<\/strong>.<\/p>\n<p>That brings us to the <code>chmod<\/code> command, which stands for <code>change mode<\/code>.<\/p>\n<p>Before using <code>chmod<\/code>, we recommend that you understand <strong>how to define and express permissions<\/strong>.<\/p>\n\n<h2 id=\"user-classes-permissions\">User Classes &amp; Permissions<\/h2>\n<p>To start off, consider the following. Unix-like systems approach file permissions as follows:<\/p>\n<ul>\n<li>Every file has an <strong>owner<\/strong>, which determines the file&#8217;s <code>user class<\/code><\/li>\n<li>Every file has a <strong>group<\/strong>, which determines the file&#8217;s <code>group class<\/code><\/li>\n<li>A user that is not an owner, and doesn&#8217;t belong to a group that has permissions upon a file, is referred to as <strong>other<\/strong>, and determines the <code>other class<\/code><\/li>\n<\/ul>\n<p>Every file on Linux has permissions assigned to every one of these classes, which determines what <strong>action<\/strong> is allowed to be taken on the file, by said <strong>classes<\/strong>.<\/p>\n<p>The <strong>actions<\/strong> that these 3 classes are allowed to perform on a file are:<\/p>\n<ul>\n<li><code>read<\/code> &#8211; ability to view contents of a file<\/li>\n<li><code>write<\/code> &#8211; ability to modify contents of a file<\/li>\n<li><code>execute<\/code> &#8211; ability to run file as executable<\/li>\n<\/ul>\n<p>Basically, a file&#8217;s permissions determine whether or not:<\/p>\n<ul>\n<li>The owner can <code>read<\/code>, <code>write<\/code> or <code>execute<\/code> the file<\/li>\n<li>The group can <code>read<\/code>, <code>write<\/code> or <code>execute<\/code> the file<\/li>\n<li>Anyone else can <code>read<\/code>, <code>write<\/code> or <code>execute<\/code> the file<\/li>\n<\/ul>\n<p><strong>The Linux file permissions are displayed in two formats:<\/strong><\/p>\n<ul>\n<li>Symbolic Notation<\/li>\n<li>Numeric Notation<\/li>\n<\/ul>\n<h2 id=\"file-permissions-symbolic-notation\">File Permissions Symbolic Notation<\/h2>\n<p>The symbolic notation is a string of 10 characters. Example:<\/p>\n<pre><code>-rwxr-xr--<\/code><\/pre>\n<ul>\n<li>The first character represents the file type ( regular, directory, symbolic link etc)<\/li>\n<li>The next 9 characters ( <code>rwxr-x--x<\/code> ) represent, the <code>read<\/code>, <code>write<\/code> and <code>execute<\/code> permissions for the <strong>owner<\/strong>, <strong>group<\/strong>, <strong>other<\/strong> &#8211; <strong>in that order<\/strong>.<br \/>\nIf an action is not permitted, a <strong>dash<\/strong> (<code>-<\/code>) is used.<\/li>\n<\/ul>\n<p>To further explain this:<\/p>\n<pre><code>-rwxr-xr--<\/code><\/pre>\n<ol>\n<li><code>-<\/code>: The first character represents the <strong>type of file<\/strong>. In our case, <code>-<\/code> indicates that it&#8217;s a regular file. Here&#8217;s a quick summary of the Linux file types:\n<ul>\n<li><code>-<\/code>: regular file<\/li>\n<li><code>d<\/code>: directory<\/li>\n<li><code>c<\/code>: character device file<\/li>\n<li><code>b<\/code>: block device file<\/li>\n<li><code>s<\/code>: local socket file<\/li>\n<li><code>p<\/code>: named pipe<\/li>\n<li><code>l<\/code>: symbolic link<\/li>\n<\/ul>\n<\/li>\n<li><code>rwx<\/code>: the next 3 characters represent the <strong>owner&#8217;s permissions<\/strong>. In our case, the owner has (r)ead, (w)rite and e(x)ecute permissions.<\/li>\n<li><code>r-x<\/code>: characters 5 to 7 represent the <strong>group permissions<\/strong>. In our case, the group permissions are (r)ead and e(x)ecute.<\/li>\n<li><code>r--<\/code>: the last 3 characters represent permissions for everyone else (<strong>others<\/strong>), and what we&#8217;ve got means that everyone else has only (r)ead permissions.<\/li>\n<\/ol>\n<h2 id=\"file-permissions-numeric-notation\">File Permissions Numeric Notation<\/h2>\n<p>The numeric notation of file permissions is represented by 3 digits, ranging from 0 to 7, each digit representing the permissions for <strong>owner<\/strong>, <strong>group<\/strong>, <strong>other<\/strong> &#8211; in that order. Each of those numbers is obtained<br \/>\nby summing the class permissions:<\/p>\n<ul>\n<li><code>0<\/code>: means no permissions allowed<\/li>\n<li><code>1<\/code>: means ability to execute the file<\/li>\n<li><code>2<\/code>: means ability to write to the file<\/li>\n<li><code>4<\/code>: means ability to read the file<\/li>\n<\/ul>\n<p>To clarify, the meaning of each digit that <code>chmod<\/code> will use is:<\/p>\n<ul>\n<li><code>0<\/code>: no permissions<\/li>\n<li><code>1<\/code>: execute permissions<\/li>\n<li><code>2<\/code>: write permissions<\/li>\n<li><code>3<\/code>: <code>1+2<\/code> &#8211; execute + write permissions<\/li>\n<li><code>4<\/code>: read permissions<\/li>\n<li><code>5<\/code>: <code>1+4<\/code> &#8211; execute + read permissions<\/li>\n<li><code>6<\/code>: <code>2+4<\/code> &#8211; write + read permissions<\/li>\n<li><code>7<\/code>: <code>1+2+3<\/code> &#8211; execute + write + read permissions<\/li>\n<\/ul>\n<h3 id=\"numeric-notation-examples\">Numeric Notation Examples<\/h3>\n<p>You have, no doubt, come across a few common file permissions in numeric notation that you might recognize:<\/p>\n<ul>\n<li><code>chmod 644<\/code>: 2+4 (write + read for owner), 4 (read for group), 4 (read for other)<\/li>\n<li><code>chmod 755<\/code>: 1+2+4 (execute + write + read for owner), 1+4 (execute + read for group), 1+4 (execute + read for other)<\/li>\n<li><code>chmod 555<\/code>: 1+2+4 (execute + write + read for everyone)<\/li>\n<\/ul>\n<h2 id=\"the-chmod-command-syntax\">The CHMOD Command Syntax<\/h2>\n<p>Before learning how to use <code>chmod<\/code>, let&#8217;s examine the <code>chmod<\/code> command syntax:<\/p>\n<pre><code>chmod [OPTIONS] [PERMISSIONS] [FILE]<\/code><\/pre>\n<p>You can set permissions without specifying <code>[OPTIONS]<\/code>. We&#8217;ll cover options further in this guide.<\/p>\n<p><code>[PERMISSIONS]<\/code> are the permissions you want to set for the given <code>[FILE]<\/code>. You can set them using symbolic or numeric notation.<\/p>\n<h3 id=\"using-the-chmod-command\">Using the CHMOD Command<\/h3>\n<p><strong>CHMOD with Numeric Notation<\/strong><\/p>\n<p>A convenient way of setting permissions is by using numeric notation:<\/p>\n<pre><code>chmod 755 some_file.txt<\/code><\/pre>\n<p><strong>CHMOD with Symbolic Notation<\/strong><\/p>\n<p>For others it&#8217;s more convenient to use symbolic notation. It&#8217;s also useful when changing permissions for particular classes.<\/p>\n<p>Let&#8217;s see some examples of using <code>chmod<\/code> with symbolic notation:<\/p>\n<pre><code>chmod u=rwx,g=rx,o=rx some_file.txt<\/code><\/pre>\n<p>When setting the same permissions to more than one class, you can just combine them. Earlier we set the same permissions to group(g) and others(o).<\/p>\n<pre><code>chmod u=rwx,go=rx some_file.txt<\/code><\/pre>\n<p>What&#8217;s great about the symbolic notation is that it allows you to add\/remove permissions for a particular action on a particular class.<\/p>\n<p>Say the owner doesn&#8217;t have execute permissions on a file. Simply set the permission as for the <strong>owner<\/strong> as follows:<\/p>\n<pre><code>chmod u+x some_file.txt<\/code><\/pre>\n<p>Maybe you&#8217;d like to remove write and execute permissions for <strong>other<\/strong>:<\/p>\n<pre><code>chmod o-wx some_file.txt<\/code><\/pre>\n<p>Additionally, you can use <code>a<\/code> to add\/remove permissions for (a)ll users:<\/p>\n<pre><code>chmod a+w some_file.txt<\/code><\/pre>\n<h3 id=\"chmod-options\">CHMOD Options<\/h3>\n<figure>\n<table>\n<thead>\n<tr>\n<th><strong>-c<\/strong>, <strong>&#8211;changes<\/strong><\/th>\n<th>Gives verbose output when a change to permissions is actually made.<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>-f<\/strong>, <strong>&#8211;silent<\/strong>, <strong>&#8211;quiet<\/strong><\/td>\n<td>Quiet mode. Suppress most error messages.<\/td>\n<\/tr>\n<tr>\n<td><strong>-v<\/strong>, <strong>&#8211;verbose<\/strong><\/td>\n<td>Verbose mode. Outputs a diagnostic message for every file processed.<\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;no-preserve-root<\/strong><\/td>\n<td>Do not treat the root ( <code>\/<\/code> ) directory in any special way, which is the default setting.<\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;preserve-root<\/strong><\/td>\n<td>Do not apply recursively to <code>\/<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;reference=<\/strong>RFILE<\/td>\n<td>Set permissions to match those of file <em>RFILE<\/em>, ignoring any specified <em>MODE<\/em>.<\/td>\n<\/tr>\n<tr>\n<td><strong>-R<\/strong>, <strong>&#8211;recursive<\/strong><\/td>\n<td>Change files and directory recursively.<\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;help<\/strong><\/td>\n<td>Display <code>chmod<\/code> help message.<\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;version<\/strong><\/td>\n<td>Display <code>chmod<\/code> version<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 id=\"chmod-recursively\">CHMOD Recursively<\/h3>\n<p>A common option used is to set permissions to all files in a particular directory, in other words, recursively. To do this we use the <code>R<\/code> option, as follows:<\/p>\n<pre><code>chmod -R 755 sample_folder<\/code><\/pre>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>The <code>chmod<\/code> command can be confusing at first, but by taking a few minutes to understand it goes a long way and everything starts to make a lot of sense.<\/p>\n<p>Hopefully this guide has helped you with this. If you&#8217;ve got any questions, issues or something to add, then please get in touch and we&#8217;ll get back to you as soon as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Unix-like system, which includes Linux, there are sets of rules for each file, which defines who can access that file and how they can access that file. These rules are called permissions or modes. That brings us to the chmod command, which stands for change mode. Before using chmod, we recommend that you understand [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,61,22],"tags":[63,62,34],"class_list":["post-1179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-basics","category-linux-commands","category-ubuntu","tag-commands","tag-terminal","tag-ubuntu"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png",1024,512,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command-300x150.png",300,150,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command-768x384.png",768,384,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png",1024,512,false],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png",1024,512,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png",1024,512,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>In Unix-like system, which includes Linux, there are sets of rules for each file, which defines who can access that file and how they can access that file. These rules are called permissions or modes. That brings us to the chmod command, which stands for change mode. Before using chmod, we recommend that you understand how to define and express permissions. User Classes &amp; Permissions To start off, consider the following. Unix-like systems approach file permissions as follows: Every file has an owner, which determines the file&#8217;s user class Every file has a group, which determines the file&#8217;s group class&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-basics\/\" rel=\"category tag\">Linux Basics<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-commands\/\" rel=\"category tag\">Linux Commands<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/ubuntu\/\" rel=\"category tag\">Ubuntu<\/a>","author_info_v2":{"name":"Vlad","url":"https:\/\/draculaservers.com\/tutorials\/author\/vlad\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux CHMOD Command - Dracula Servers Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux CHMOD Command - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"In Unix-like system, which includes Linux, there are sets of rules for each file, which defines who can access that file and how they can access that file. These rules are called permissions or modes. That brings us to the chmod command, which stands for change mode. Before using chmod, we recommend that you understand [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-29T21:27:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-14T23:16:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vlad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vlad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/\"},\"author\":{\"name\":\"Vlad\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\"},\"headline\":\"Linux CHMOD Command\",\"datePublished\":\"2018-12-29T21:27:37+00:00\",\"dateModified\":\"2021-11-14T23:16:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/\"},\"wordCount\":911,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/Linux-CHMOD-Command.png\",\"keywords\":[\"Commands\",\"Terminal\",\"Ubuntu\"],\"articleSection\":[\"Linux Basics\",\"Linux Commands\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/\",\"name\":\"Linux CHMOD Command - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/Linux-CHMOD-Command.png\",\"datePublished\":\"2018-12-29T21:27:37+00:00\",\"dateModified\":\"2021-11-14T23:16:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/Linux-CHMOD-Command.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/Linux-CHMOD-Command.png\",\"width\":1024,\"height\":512,\"caption\":\"linux_chmod_command\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/linux-chmod-command\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux CHMOD Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/931f7fa8b2126ace6edfb82775e0ec0e\",\"name\":\"Vlad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g\",\"caption\":\"Vlad\"},\"description\":\"Tech Support\",\"sameAs\":[\"https:\\\/\\\/draculaservers.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux CHMOD Command - Dracula Servers Tutorials","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/","og_locale":"en_US","og_type":"article","og_title":"Linux CHMOD Command - Dracula Servers Tutorials","og_description":"In Unix-like system, which includes Linux, there are sets of rules for each file, which defines who can access that file and how they can access that file. These rules are called permissions or modes. That brings us to the chmod command, which stands for change mode. Before using chmod, we recommend that you understand [&hellip;]","og_url":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2018-12-29T21:27:37+00:00","article_modified_time":"2021-11-14T23:16:03+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png","type":"image\/png"}],"author":"Vlad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vlad","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/"},"author":{"name":"Vlad","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e"},"headline":"Linux CHMOD Command","datePublished":"2018-12-29T21:27:37+00:00","dateModified":"2021-11-14T23:16:03+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/"},"wordCount":911,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png","keywords":["Commands","Terminal","Ubuntu"],"articleSection":["Linux Basics","Linux Commands","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/","url":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/","name":"Linux CHMOD Command - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png","datePublished":"2018-12-29T21:27:37+00:00","dateModified":"2021-11-14T23:16:03+00:00","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2018\/12\/Linux-CHMOD-Command.png","width":1024,"height":512,"caption":"linux_chmod_command"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/linux-chmod-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Linux CHMOD Command"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/931f7fa8b2126ace6edfb82775e0ec0e","name":"Vlad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/499c7a24aa9727703300a291f8f69dfd1b01b8d6a19a4ae4fbe669b4b12b8cbe?s=96&d=mm&r=g","caption":"Vlad"},"description":"Tech Support","sameAs":["https:\/\/draculaservers.com"]}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1179"}],"version-history":[{"count":1,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1179\/revisions"}],"predecessor-version":[{"id":2247,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/1179\/revisions\/2247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/1184"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}