You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing-code/foundational-tech/index.html
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,12 @@ <h2>On this page</h2>
279
279
</a>
280
280
</li>
281
281
282
+
<li>
283
+
<ahref="#file-permissions">
284
+
File permissions
285
+
</a>
286
+
</li>
287
+
282
288
</ul>
283
289
284
290
</li>
@@ -431,6 +437,28 @@ <h3 id="cc-specifics-for-github">CC specifics for GitHub</h3><p>For some specifi
431
437
<li><ahref="/contributing-code/github-repo-guidelines/">GitHub Repo Guidelines — Creative Commons Open Source</a></li>
432
438
<li><ahref="/contributing-code/repo-labels/">Repository Labels — Creative Commons Open Source</a></li>
433
439
</ul>
440
+
<h3id="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><ahref="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><ahref="https://thelinuxcode.com/add-chmod-permissions-to-file-in-git/">Mastering Permissions in Git: A Complete Guide to Adding chmod Modes in Your
0 commit comments