Now we will login as a nanu user and we are going to create public_html directory and in directory, we
are going to create index.html file and we have to give proper permissions to these files and
directories.
So we will login.
as a nanu.
And when it was going to ask for the password, we are going to give one password, then using pwd
command.
You can verify the home directly in the case of nanu it is going to be /home/nanu
So we are going to make the directory mkdir public_html then with ls -ld public_
html, it is going to show you the permissions.
So by default, the permission for user are rwx ,for group rwx, and r-x for this public directory.
That means the permission are 775.
But we require the permission to be, when we have to implement the per-user web directory.
The permission should be 755.
Now currently there are 775.
So in our case, we are going to run this command chmod 755 public_html.
Then again, we are going to check the permission.
Now, it will show you the revised permissions.
Then we will go into the public_html directory.
We are going to create one file index.html in which we are going to say we put some data in our case, we
are going to say welcome to the nanu user homepage.
And then with the pwd command, we can verify where we are /home/nanu/public_html that mean whenever
any user has to create their website in home directory they have to create public_html directory
and change the permissions to 755 and then create one index.html file that mean the
first file name should be index.html.
So that is how we create the data for your launching.
per user web directory.