1
00:00:00,420 --> 00:00:06,840
Now we will login as a nanu user and we are going to create public_html directory and in directory, we

2
00:00:06,840 --> 00:00:12,960
are going to create index.html file and we have to give proper permissions to these files and

3
00:00:12,960 --> 00:00:13,460
directories.

4
00:00:13,680 --> 00:00:14,730
So we will login.

5
00:00:14,760 --> 00:00:15,580
as a nanu.

6
00:00:15,750 --> 00:00:21,950
And when it was going to ask for the password, we are going to give one password, then using pwd 

7
00:00:21,960 --> 00:00:22,770
command.

8
00:00:22,770 --> 00:00:27,010
You can verify the home directly in the case of nanu it is going to be /home/nanu

9
00:00:27,480 --> 00:00:34,710
So we are going to make the directory mkdir public_html then with ls -ld public_

10
00:00:34,710 --> 00:00:37,120
html, it is going to show you the permissions.

11
00:00:37,410 --> 00:00:47,500
So by default, the permission for user are rwx ,for group rwx, and r-x for this public directory.

12
00:00:47,850 --> 00:00:50,810
That means the permission are 775.

13
00:00:51,270 --> 00:00:57,990
But we require the permission to be, when we have to implement the per-user web directory.

14
00:00:57,990 --> 00:01:00,250
The permission should be 755.

15
00:01:00,660 --> 00:01:03,090
Now currently there are 775.

16
00:01:03,330 --> 00:01:09,070
So in our case, we are going to run this command chmod 755 public_html.

17
00:01:09,510 --> 00:01:11,690
Then again, we are going to check the permission.

18
00:01:12,120 --> 00:01:14,520
Now, it will show you the revised permissions.

19
00:01:14,940 --> 00:01:16,970
Then we will go into the public_html directory.

20
00:01:17,520 --> 00:01:24,600
We are going to create one file index.html in which we are going to say we put some data in our case, we

21
00:01:24,600 --> 00:01:26,880
are going to say welcome to the nanu user homepage.

22
00:01:27,390 --> 00:01:38,070
And then with the pwd command, we can verify where we are /home/nanu/public_html that mean whenever

23
00:01:38,070 --> 00:01:45,620
any user has to create their website in home directory they have to create public_html directory

24
00:01:45,810 --> 00:01:51,270
and change the permissions to 755 and then create one index.html file that mean the

25
00:01:51,270 --> 00:01:53,270
first file name should be index.html.

26
00:01:54,090 --> 00:01:58,440
So that is how we create the data for your launching.

27
00:01:58,440 --> 00:01:59,730
per user web directory.
