Linux Permissions in 10 Minutes

Video is ready, Click Here to View ×


Donate ❤️ venmo.com/jream | Patreon |

In 10 minutes you’ll get it! Some Commands:
$ chmod 0777 file
$ chmod g+rw file
$ chmod +rwx (apply to all)
$ chgrp www-data file
$ chown jesse:www-data file

12 Comments

  1. Filezilla has a GUI version of the permissions. It has checkboxes that assign permissions to a file. They are arranged such that the binary versions line up:

                 Read              Write            Execute         Binary           Decimal
    Owner   1                    1                  0                     110                 6
    Group   1                     0                  0                    100                  4
    Public   1                     0                  0                     100                 4

    the Decimal would be displayed in a text box down below.

    You can just look at it as Execute being the first bit (1 in decimal), Write being the second bit (2 in decimal)  and Read being the third bit (4 in decimal).

  2. Could you make a video a bout how to set up a local LAMP development enviroment on Linux? There's barely any tutorial that shows how to set up apache process permissions and extensions so that  you don't have to run chmod every time you make a new file.

  3. I saw that "a+rwx" added all permissions to all users which made me check man page for chmod. The "a" symbolic mode stands for all users. Those are as follows: u-owner, g-group, o-others, a-all. Look for "Symbolic Mode" section in man pages to verify and possible add an annotation? Besides that great job at explaining this to a new linux user.

  4. If I recall correctly, the reason for WordPress' 777 permission is only when you are installing, because most people who set up WordPress blogs usually do so in a shared hosting environment where the Apache user needs the public writing and executing rights to run the install scripts, and 775 for directories so it can enter into them.

    Once the install is done you should remove the install script and set proper permissions, but most people usually forget or don't know about it…

Leave a Reply

Your email address will not be published.


*