<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BlueDigitalWave</title>
    <description>The latest articles on DEV Community by BlueDigitalWave (@bluedigitalwave).</description>
    <link>https://dev.to/bluedigitalwave</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F504167%2F97d0c171-c1a6-48a7-a764-b9ef5240ba8a.jpg</url>
      <title>DEV Community: BlueDigitalWave</title>
      <link>https://dev.to/bluedigitalwave</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bluedigitalwave"/>
    <language>en</language>
    <item>
      <title>CHMOD | PERMISSIONS CONVERTER</title>
      <dc:creator>BlueDigitalWave</dc:creator>
      <pubDate>Wed, 28 Dec 2022 17:09:02 +0000</pubDate>
      <link>https://dev.to/bluedigitalwave/chmod-permissions-converter-42b1</link>
      <guid>https://dev.to/bluedigitalwave/chmod-permissions-converter-42b1</guid>
      <description>&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
      &lt;div class="c-embed__cover"&gt;
        &lt;a href="https://www.permissions-converter.com/" class="c-link s:max-w-50 align-middle" rel="noopener noreferrer"&gt;
          &lt;img alt="" src="https://res.cloudinary.com/practicaldev/image/fetch/s--6KswIW8j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.permissions-converter.com/open-graph.png" height="200" class="m-0" width="200"&gt;
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;div class="c-embed__body"&gt;
      &lt;h2 class="fs-xl lh-tight"&gt;
        &lt;a href="https://www.permissions-converter.com/" rel="noopener noreferrer" class="c-link"&gt;
          PERMISSIONS CONVERTER
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;p class="truncate-at-3"&gt;
          Online linux permissions converter. Convert permissions for any distribution: Ubuntu, Manjaro, Pop!_OS, Arch Linux, Mac ...
        &lt;/p&gt;
      &lt;div class="color-secondary fs-s flex items-center"&gt;
          &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://res.cloudinary.com/practicaldev/image/fetch/s--vT2IZySY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.permissions-converter.com/folder.svg" width="50" height="50"&gt;
        permissions-converter.com
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;I share with all of you this very useful web page to consult some kind of permissions for our files. I understand that for more advanced users it will not be useful at all and may even seem silly, but it has saved me from many.&lt;/p&gt;

&lt;p&gt;You just enter the permissions and that's it!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9DtItaF0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yvp3te4u52q4psejnzbf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9DtItaF0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yvp3te4u52q4psejnzbf.png" alt="Image description" width="710" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀⥀&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zPxKQDNM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5yq25k3eqc7qcd88chvs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zPxKQDNM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5yq25k3eqc7qcd88chvs.png" alt="Image description" width="710" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And now for the more curious I will try to explain how to understand the conversion so that we don't have to rely on anything.&lt;br&gt;
In Linux and other Unix-like operating systems, file permissions determine who can access and modify files and directories. File permissions are specified using a three-digit octal (base-8) notation, which represents the permissions for the &lt;strong&gt;owner&lt;/strong&gt;, &lt;strong&gt;group&lt;/strong&gt;, and &lt;strong&gt;others&lt;/strong&gt; (also known as "world").&lt;/p&gt;

&lt;p&gt;Here's an example of how to convert permissions from the octal notation (777) to the symbolic notation (rwxrwxrwx):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w0EIxlTK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jo6xp431e6m2lpeah2j7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w0EIxlTK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jo6xp431e6m2lpeah2j7.png" alt="Image description" width="242" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Start with the octal notation (777). This represents the permissions for the owner, group, and others.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Break down the octal notation into its &lt;strong&gt;individual digits&lt;/strong&gt;. In this case, the first digit is 7, the second digit is 7, and the third digit is 7.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Convert each digit to its corresponding symbolic notation. In the symbolic notation, &lt;strong&gt;"r"&lt;/strong&gt; represents &lt;strong&gt;read&lt;/strong&gt; permission, &lt;strong&gt;"w"&lt;/strong&gt; represents write &lt;strong&gt;permission&lt;/strong&gt;, and &lt;strong&gt;"x"&lt;/strong&gt; represents &lt;strong&gt;execute&lt;/strong&gt; permission.If the digit is 0, it means that the corresponding permission is not set.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;If the digit is &lt;strong&gt;1&lt;/strong&gt;, it means that the corresponding permission is set to &lt;strong&gt;execute only&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;If the digit is &lt;strong&gt;2&lt;/strong&gt;, &lt;strong&gt;write only&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3&lt;/strong&gt;, &lt;strong&gt;write and execute&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4&lt;/strong&gt;, &lt;strong&gt;read only&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5&lt;/strong&gt;, &lt;strong&gt;read and execute&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6&lt;/strong&gt;, &lt;strong&gt;read and write&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7&lt;/strong&gt;, &lt;strong&gt;read, write, and execute&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Combine the symbolic notation for each digit to get the final result. In this case, the octal notation 777 is equivalent to the symbolic notation rwxrwxrwx.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, if you have a file with permissions set to 777, it means that the owner has read, write, and execute permissions; the group has read, write, and execute permissions; and others have read, write, and execute permissions. This is equivalent to the symbolic notation rwxrwxrwx.&lt;/p&gt;



&lt;p&gt;And now that we understand it a little better, we will see how to apply the chmod command and what it works for.&lt;br&gt;
The &lt;code&gt;chmod&lt;/code&gt; command is used to change the permissions of a file or directory in Linux and other Unix-like operating systems. You can use &lt;code&gt;chmod&lt;/code&gt; to grant or revoke permissions for the &lt;strong&gt;owner&lt;/strong&gt;, &lt;strong&gt;group&lt;/strong&gt;, and &lt;strong&gt;others&lt;/strong&gt;.&lt;br&gt;
Here's an example of how to use the &lt;code&gt;chmod&lt;/code&gt; command to change the permissions of a file or directory from 777 (rwxrwxrwx) to 755 (rwxr-xr-x) using the octal notation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open a terminal window.&lt;/li&gt;
&lt;li&gt;Use the &lt;code&gt;cd&lt;/code&gt; command to navigate to the directory that contains the file or directory whose permissions you want to change. For example:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /path/to/directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;Type &lt;code&gt;chmod&lt;/code&gt; followed by the octal notation for the desired permissions and the name of the file or directory. For example:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod 755 file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ol&gt;
&lt;li&gt;This will change the permissions of the file &lt;code&gt;file.txt&lt;/code&gt; to 755 (rwxr-xr-x).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can also use the &lt;code&gt;chmod&lt;/code&gt; command with the symbolic notation to specify permissions. For example, to change the permissions of a file or directory from 777 (rwxrwxrwx) to 755 (rwxr-xr-x) using the symbolic notation, you can use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod u=rwx,g=rx,o=rx file.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will change the permissions of the file file.txt to 755 (rwxr-xr-x). The u represents the &lt;strong&gt;owner&lt;/strong&gt;, the &lt;code&gt;g&lt;/code&gt; represents the group, and the o represents others. The &lt;code&gt;=&lt;/code&gt; symbol means &lt;strong&gt;"set to"&lt;/strong&gt; and the &lt;code&gt;,&lt;/code&gt; symbol &lt;strong&gt;separates&lt;/strong&gt; the different permissions.&lt;br&gt;
You can also use the &lt;code&gt;chmod&lt;/code&gt; command with the &lt;code&gt;-R&lt;/code&gt; option to recursively change the permissions of all files and directories inside a directory. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod -R 755 /path/to/directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will change the permissions of all files and directories inside the &lt;code&gt;/path/to/directory&lt;/code&gt; directory and all its subdirectories to 755 (rwxr-xr-x).&lt;/p&gt;




&lt;p&gt;And this has been all my people, I hope to help, I am more interested in understanding the permissions than in using the shared resource.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>unix</category>
      <category>chmod</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
