Skip to content

Commit b656e56

Browse files
committed
Synchronized build
1 parent 0c64cfc commit b656e56

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

contributing-code/foundational-tech/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ <h2>On this page</h2>
279279
</a>
280280
</li>
281281

282+
<li>
283+
<a href="#file-permissions">
284+
File permissions
285+
</a>
286+
</li>
287+
282288
</ul>
283289

284290
</li>
@@ -431,6 +437,28 @@ <h3 id="cc-specifics-for-github">CC specifics for GitHub</h3><p>For some specifi
431437
<li><a href="/contributing-code/github-repo-guidelines/">GitHub Repo Guidelines — Creative Commons Open Source</a></li>
432438
<li><a href="/contributing-code/repo-labels/">Repository Labels — Creative Commons Open Source</a></li>
433439
</ul>
440+
<h3 id="file-permissions">File permissions</h3><p>Please note the following best practices for file permissions:</p>
441+
<ul>
442+
<li><code>0777</code> - Anyone can read/write/execute<ul>
443+
<li>⚠️ Never use these permissions</li>
444+
</ul>
445+
</li>
446+
<li><code>0755</code> – Owner can read/write/execute, group and others can read/execute<ul>
447+
<li>Should be used for scripts that are executed from the command line</li>
448+
<li>Shouldn't ever be used for plain text files, images, etc.</li>
449+
</ul>
450+
</li>
451+
<li><code>0644</code> - Owner can read/write, group and others can read-only<ul>
452+
<li>Default on most systems</li>
453+
</ul>
454+
</li>
455+
</ul>
456+
<p>References:</p>
457+
<ul>
458+
<li><a href="https://www.digitalocean.com/community/tutorials/how-to-set-permissions-linux">How to Set Permissions in Linux: A Guide to chmod and chown | DigitalOcean</a></li>
459+
<li><a href="https://thelinuxcode.com/add-chmod-permissions-to-file-in-git/">Mastering Permissions in Git: A Complete Guide to Adding chmod Modes in Your
460+
Repository – TheLinuxCode</a></li>
461+
</ul>
434462
<h2 id="docker">Docker</h2><p><a href="https://en.wikipedia.org/wiki/Docker_(software)">Docker (software) - Wikipedia</a>:</p>
435463
<blockquote><p>Docker is a set of platform as a service (PaaS) products that use OS-level
436464
virtualization to deliver software in packages called containers. [...]</p>

0 commit comments

Comments
 (0)