Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9877335

Have any Question?


Related Questions in Computer Engineering

Discuss the importance of metadata and some of the various

Discuss the importance of metadata and some of the various ways (Microsoft) SQL Server allows you to expose that information. References welcomed to learn where to find obscure IT information (books, articles, websites)

You are evaluating two different silicon wafer milling

You are evaluating two different silicon wafer milling machines. The Techron I costs $255,000, has a three-year life, and has pretax operating costs of $68,000 per year. The Techron II costs $445,000, has a five-year lif ...

How do you apply the five components of the information

How do you apply the five components of the information systems to an information systems application like "online bill pay" system offered by many banks.

Scruffie the cat has 15 to spend each month on cat toys

Scruffie the cat has $15 to spend each month on cat toys, which cost $3 each, and cat treats, which cost $1.50 each. Draw a budget line to show the combination of each good that scuffie can afford if she spends her entir ...

If you want to answer a research question regarding whether

If you want to answer a research question regarding whether a particular group of subjects experiences any significant changes in behavior as they age but you do not have the time or money for a traditional longitudinal ...

Suppose pointers are 4 bytes long and keys are 12 bytes

Suppose pointers are 4 bytes long, and keys are 12 bytes long. How many keys and pointers will a block of 16,384 bytes have?

Assessment details part 1 design documentation and peer

Assessment Details: Part 1: Design Documentation and Peer Review This stage requires you to select a problem to solve using one of the available Mindstorms Robots, design a possible solution to this problem and submit th ...

The standard math library cmath includes a function for

The standard math library cmath includes a function for taking the square root of a number. The heading (prototype) for this function is: double sqrt(double x) Write another function called closer_root that takes two rea ...

Could you help me to solve the following stats problemthe

Could you help me to solve the following stats problem? The number of patients waiting for flu vaccine at A hospital has the following probability distributions. x 1 2 3 4 p(x) 0.2 0.3 0.4 0.1 What is the variance of num ...

Question summary on hypertext transfer protocol http

Question : Summary on Hypertext Transfer Protocol (HTTP) describing its major features, principles of operation and application in transferring traffic over the World Wide Web. The response must be typed, single spaced, ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As