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 circuit buffer last-in first-out lifo

I want design circuit this Buffer(LIFO). This blocking is for FIFO memory but i want design circuit Buffer Last-in First-out LIFO 4*4

  Solve decanting problem using euclidean algorithm

Use Euclidean algorithm to solve decanting problem for decanters of sizes 1317 and 1075. Or we can say, determine integers x and y.

  Discuss the role of the project manager or team

Summarize how the project manager or team exhibited exceptional and ethical project management practices. 2.Discuss the role of the project manager or team

  In how many different ways can one plan such a tour

The price of a European tour includes four stopovers to be selected from among 10 cities. In how many different ways can one plan such a tour if the order of the stopover matters.

  Explain local telephone calls-long distance telephone calls

Will distinction between local telephone calls and long distance telephone calls ever disappear? What may cause this to happen?

  Determine thickness if mass of tank is given

Determine x if the mass of the tank is 18 kg. The density of stainless-steel is 7920 kg/m^3. Note: use MATLAB script file to find x.

  User interface design guidelines used for new system

Design a suitable source document for ads that are telephoned or mailed in. Suggest at least four user interface design guidelines that could be used for the new system.

  Create a class named commission

Create a class named Commission that includes two numeric variables: a sales figure and a commission rate. Also create two overloaded methods name computeCommission().

  Design a class named location for locating a maximal value

Design a class named Location for locating a maximal value and its location in a two-dimensional array.

  Concept and include strengths and weaknesses of papers

Analyse those papers and make a document with usual report format such like Abstract, Introduction, body, conclusion and references and also appendix.

  Find the grammar generated by the language

Find the grammar generated by the language L=(a^i b^j | i!= j)

  Write a program that checks a text file for several

Write a program that checks a text file for several formatting and punctuation matters. The program asks for the names of both an input file and an output file.

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