**Additional note: Although I'm sure you are smart enough to figure it out, I wanted to add that this works the same way for directories...eg, if you're in a folder that has several folders in it, you can just type in the name of the folder for the chmod command because at times, you will allow a file to execute, but the folder may block you from entering it in the first place.
If you are viewing this in relation to your website that has already made it to the internet, typically you will be able to right click or select the folder and choose something along the likes of "Change Permissions". Now that you are aware of what the numbers stand for from this video, you should be able to protect your site as well as display all information you give permission to. I did not do a cpanel tutorial due to the variety of cpanels out there along with the rapidly updating UI's.
Learn how to use the chmod command and all the knick knacks associated with it.
Thanks for the video bud! Excellent explanations...however i do have a question, i was under the impression that the first 3 were users, then groups and then others... unless that is for linux and urs is different because ur on Mac? im just new to linux and need to get my info right
Thx
MrSpideyz 10 months ago
@MrSpideyz The first number controls all three rules for the user, the second number for the group, and then lastly for everyone else. However, I do need to update this video because I've found an easier way to set these up:
$man chmod
You'll see that besides numbers you can use letters, so if I want to give the user and group read and write I can easily do this
$chmod ug+rw filename
u = user, g=group, o=others, a=all / r = read, w=write, x=exec
I'll make a new chmod vid soon
thejacenxpress 10 months ago