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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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