Appache and Permissions Part 1
Appache and Permissions Part 1
Video Transcript
00:00Let's jump right in we were in the process of creating our first folder that we're going to host our site in it
00:06We already created the folder in the last session and then this session we want to continue and make sure that the folder itself is
00:13Owned and is accessible to our server. So the next step involved. I want to go to that folder
00:19I want to change its owner by using the change the CH own the
00:24Drone or change owner command and I want to recursively change the owner
00:29Who do I want to change it to and don't worry about the?
00:32Extra details here. I want it to be created by and I want it to be owned by
00:38The Apache user now the Apache user on sentos is called Apache but on other servers. It might be called
00:44Www you'll have to check that if you're not running a sentos command
00:48But be feel free to comment about it in our posts here or do a quick Google search to find out
00:54What is your Apache user in the case of sendos in our case? It's going to be Apache
00:59Now the next step is we want to say what folder do we want to CH own or what?
01:05Recursively because we're going to go through every single sub folder there
01:08So I'm going to go to that
01:09Www which is going to be all that publicly or all the stuff that I want my server to be able to control
01:14And I'm just going to click on enter again. It's going to ask me for a password
01:17So I'm going to let it have that password and what it with what it did is
01:22Recursively went through everything inside of that
01:25Www folder and change the access rights to be of Apache
01:30Next step is we want to make sure that only Apache could actually execute files inside of this folder
01:36Although we don't mind other users to be able to read and write
01:39We don't want any other users besides Apache to be able to actually make commands or execute commands on this server
01:46So I'm just going to go ahead and recursively go through all the folders there and just by default set them again
01:52I'm going to if you remember our conversation about
01:54Files and their permission levels. I'm going to go to the proficient permission levels in this one
01:59I'm going to say CH mode and I'm going to recursively go through everything inside of these folders and say
02:05the the Apache that user should be able to read write and execute and all other users should only be able to
02:13Execute and read, but they won't be able to write
02:17and
02:17We're going to make sure that we're going to again approach that
02:20Ww folder and I'm going to click on enter and because I already set a password is going to go through recursively and make sure
02:26That only Apache could read write and execute. We are almost done with this topic about permissions
02:31I just wanted to talk about one more kind of critical thing for you to understand
02:36I'm separating it into a separate video
02:37So let's jump into the next topic where we're going to talk a little bit more about permissions
02:41you
