Interesting Commands Summary

Interesting Commands Summary

The project team is ready to create the directory structure for the Web site. You are tasked with creating the directories and implementing the security mechanism. For this assignment, you need to create the following directory structure and permissions:

Ensure that you are starting in your individual Home directory:

+-apache/

-bin/

-conf/

-lib/

+- www/

-html

-cgi-bin/

-ftp

The following file permission should be enabled for the directories:

•The owner can read, write and execute All.

•The group can read and execute All Directories.

•Everyone else can only read and execute the files in Apache only (and no permissions in www).

•Change the www tp directory to allow the User and group to read, write, and execute, but everyone else to only write to the directory.

In addition, create the following empty files and set the following file permissions:

CS126_U4_2

Finally, create a file called apache/conf/httpd.conf, and add the following lines to the file:

CS126_U4_3

Save the file and exit the editor. Set the file permission for this file to be: 664.

Show the command used to show content of the file and the content of the file.

Using the grep command, write comment to find the line containing the word(s) ServerRoot and DocumentRoot in the httpd.conf file.

Write a sed command that will change the ServerRoot value from /usr to the absolute directory patch for your apache directory.

Write a sed command that will change the Document value from /Library/WebServer/Documents to the absolute directory patch for your www directory.

Write an awk command that will print only the comment field and the login id of all users in the /etc/passwd file in this format: – .

Your submission should include the following, as well as a description about each step (what you did and why you are performing each command) and associated screenshots:

•All commands to create the above structure

•Changing to your Home directory

•Creating the directories

•Creating the empty files

•Changing all file permissions

•Show the directory list of the new structure, including a list of permissions

•A grep, sed, and awk command

Finally, save your Word document as “yourname_IP4.docx”. Click the “Edit” button on this submission node to submit the saved document.

Here are some tips if you have problems to submit your Word document:

1.Make sure there are some texts (not only the screenshots) in the Word document.

Join now or
log in to start viewing answers.

Previous answers to this question


This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.

order uk best essays Get The Answer
Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Interesting Commands Summary

Interesting Commands Summary

The project team is ready to create the directory structure for the Web site. You are tasked with creating the directories and implementing the security mechanism. For this assignment, you need to create the following directory structure and permissions:

Ensure that you are starting in your individual Home directory:

+-apache/

-bin/

-conf/

-lib/

+- www/

-html

-cgi-bin/

-ftp

The following file permission should be enabled for the directories:

•The owner can read, write and execute All.

•The group can read and execute All Directories.

•Everyone else can only read and execute the files in Apache only (and no permissions in www).

•Change the www tp directory to allow the User and group to read, write, and execute, but everyone else to only write to the directory.

In addition, create the following empty files and set the following file permissions:

CS126_U4_2

Finally, create a file called apache/conf/httpd.conf, and add the following lines to the file:

CS126_U4_3

Save the file and exit the editor. Set the file permission for this file to be: 664.

Show the command used to show content of the file and the content of the file.

Using the grep command, write comment to find the line containing the word(s) ServerRoot and DocumentRoot in the httpd.conf file.

Write a sed command that will change the ServerRoot value from /usr to the absolute directory patch for your apache directory.

Write a sed command that will change the Document value from /Library/WebServer/Documents to the absolute directory patch for your www directory.

Write an awk command that will print only the comment field and the login id of all users in the /etc/passwd file in this format: – .

Your submission should include the following, as well as a description about each step (what you did and why you are performing each command) and associated screenshots:

•All commands to create the above structure

•Changing to your Home directory

•Creating the directories

•Creating the empty files

•Changing all file permissions

•Show the directory list of the new structure, including a list of permissions

•A grep, sed, and awk command

Finally, save your Word document as “yourname_IP4.docx”. Click the “Edit” button on this submission node to submit the saved document.

Here are some tips if you have problems to submit your Word document:

1.Make sure there are some texts (not only the screenshots) in the Word document.

Join now or
log in to start viewing answers.

Previous answers to this question


This is a preview of an assignment submitted on our website by a student. If you need help with this question or any assignment help, click on the order button below and get started. We guarantee authentic, quality, 100% plagiarism free work or your money back.

order uk best essays Get The Answer
Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *