Create the directory structure

Assignment Help Basic Computer Science
Reference no: EM13298009

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 wwwftp 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:

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 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: <Comment Field> - <login id>.

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

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

Reference no: EM13298009

Questions Cloud

Find the speed of one spaceship relative to the other : An observer sees two spaceships moving in opposite directions, Find the speed of one spaceship relative to the other
Identify the communication protocols : Identify the communication protocols used in a large hospital organization.
What reinvestment rate assumptions are implicitly made : What reinvestment rate assumptions are implicitly made by the net present value and the internal rate of return methods? Which method is better?
What is the magnitude of the charge on the particle : A charged particle of mass .0020kg is subjected to a 5.0T magnetic field that acts at a right angle to its motion. what is the magnitude of the charge on the particle
Create the directory structure : 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 p..
How do the monetarists and the keynesians differ : How do the Monetarists and the Keynesians differ in their perrceptions of the role of money in the economy?
Write a script that calculates the common factors : Write a script that calculates the common factors between 10 and 20. To find a common factor, you can use the modulo operator (%) to check whether a number can be evenly divided into both numbers.
What magnetic force acts on this segment of wire : A 5m length of wire cariying a current of 5A lies on a hoizontal table with a rectangular top of dimensions 3.00m x 4.00m. What magnetic force acts on this segment of wire
Determine what constricted width would be to force the flow : Given that uniform flow is subcritcal and there is a constriction in a rectangular channel, how do you determine what the constricted width would be to force the flow to be critical. Draw this transition on a specific energy curve.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Design a combinational circuit

Design a combinational circuit that accepts a 3-bit number and generates a 6-bit binary number equal to the square of the number. Thanks!

  Create a customer experience strategy

Include components of customer service model reognized within your text. How would you use them to create a customer experience strategy?

  What types of threats does the tool mitigate?

At work, keeping your data safe and your computers up and running is your primary concern. What can employees do to protect against intrusion and attacks?

  Develop a make-change program

The program should be written in MIPS. Develop a Make-Change program

  How many strings will be read

You should read a list of strings from a data file (using scanf), and find the minimum and maxium values of the string data. The input file format will start with a single integer that indicates how many strings will be read, and then lists those ..

  Allow different payment and shipping options

allow different payment and shipping options. There are a plenty of examples of this kind of web sites. Some well-known ones are amazon.com, Barnes & Nobles, and Borders.

  Describing how prolog executes command

Describe how Prolog executes command (query) and goal matching process.

  Discuss its usage in programming

What is a ? Discuss its usage in programming

  Construct a 3-bit counter using three d flip-flops

Construct a 3-bit counter using three D flip-flops and a selection of gates. The inputs should consist of a signal that resets the counter to 0, called reset, and a signal to increment the counter, called inc.

  Apply the cartesian product construction

Apply the Cartesian product construction to (i) and (j) to obtain an automata recognizing the union of their languages. i. {w|w every odd position of w is a 1} j. {w| w contains at least two Os and at most one 1}

  Define a lan-to-wan, internet, and web surfing

Richman Investments requires the enforcement of strict ingress-egress filtering policies for network traffic. Certain traffic is expressly forbidden:

  Given a 3 millisecond seek time

Given a 3 millisecond seek time for a disk drive and assuming that once you reach the starting track you will write the file as contiguous sectors, how long will it take to write a 1 megabyte file? The disk rotates at 7200 rpm and each sector hold 1 ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd