Created
July 14, 2021 18:25
-
-
Save doxt3r/846939c9ea5f0d76e8667ca4e602a06a to your computer and use it in GitHub Desktop.
Revisions
-
doxt3r created this gist
Jul 14, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ Number Octal Permission Representation 0 No permission 1 Execute permission 2 Write permission 3 Execute and write permission: 1 (execute) + 2 (write) = 3 4 Read permission 5 Read and execute permission: 4 (read) + 1 (execute) = 5 6 Read and write permission: 4 (read) + 2 (write) = 6 7 All permissions: 4 (read) + 2 (write) + 1 (execute) = 7 For a website folder using apache: chown -R $USER:www-data example.com/ chmod -R 2774 example.com/