2023 The project team is ready to create the directory structure for a | Assignment Collections
Computer Science 2023 A+ Answer
2023 The project team is ready to create the directory structure for a | Assignment Collections
The project team is ready to create the directory structure for a test Web site. You are tasked with creating the directories and implementing the directory permissions. For this assignment, you need to create the following directory structure and permissions:
Ensure 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 wwwftp directory to allow the user and group to read, write, and execute, but everyone else only to write to the directory.
In addition, create the following empty files, and set the following file permissions:
· apache/bin/httpd – 755
· www/html/index.html – 644
· www/cgi-bin/process.pl – 711
Finally, create a file called apache/conf/httpd.conf, and add the following lines to the file:
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# Do not add a slash at the end of the directory path.
#
ServerRoot “/usr”
#
# DocumentRoot: The directory out of which you will serve your documents.
#
DocumentRoot “/Library/WebServer/Documents”
· 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 comments to find the line containing the words “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 each command is and why you are performing it):
· All commands to create the above structure
· Changing to your home directory
· Creating the directories
· Creating the empty files
· Changing all file permissions
· The directory list of the new structure, including a list of permissions
· A grep, sed, and awk command
Adhere to MLA formatting and reference guidelines when writing your response. Additionally, your response should be free of grammatical errors, use complete sentences, and give specific details to support statements.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.