{"id":126305,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/interesting-commands-summary"},"modified":"2017-08-16T06:09:10","modified_gmt":"2017-08-16T06:09:10","slug":"interesting-commands-summary","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/interesting-commands-summary\/","title":{"rendered":"Interesting Commands Summary"},"content":{"rendered":"<div class=\"the_content_wrapper\">\n<div class=\"row-fluid\">\n<div class=\"span12 word-break question-wrapper\">\n<p>Interesting Commands Summary<\/p>\n<p>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:<\/p>\n<p>Ensure that you are starting in your individual Home directory:<\/p>\n<p>+-apache\/<\/p>\n<p>-bin\/<\/p>\n<p>-conf\/<\/p>\n<p>-lib\/<\/p>\n<p>+- www\/<\/p>\n<p>-html<\/p>\n<p>-cgi-bin\/<\/p>\n<p>-ftp<\/p>\n<p>The following file permission should be enabled for the directories:<\/p>\n<p>\u2022The owner can read, write and execute All.<\/p>\n<p>\u2022The group can read and execute All Directories.<\/p>\n<p>\u2022Everyone else can only read and execute the files in Apache only (and no permissions in www).<\/p>\n<p>\u2022Change the www tp directory to allow the User and group to read, write, and execute, but everyone else to only write to the directory.<\/p>\n<p>In addition, create the following empty files and set the following file permissions:<\/p>\n<p>CS126_U4_2<\/p>\n<p>Finally, create a file called apache\/conf\/httpd.conf, and add the following lines to the file:<\/p>\n<p>CS126_U4_3<\/p>\n<p>Save the file and exit the editor. Set the file permission for this file to be: 664.<\/p>\n<p>Show the command used to show content of the file and the content of the file.<\/p>\n<p>Using the grep command, write comment to find the line containing the word(s) ServerRoot and DocumentRoot in the httpd.conf file.<\/p>\n<p>Write a sed command that will change the ServerRoot value from \/usr to the absolute directory patch for your apache directory.<\/p>\n<p>Write a sed command that will change the Document value from \/Library\/WebServer\/Documents to the absolute directory patch for your www directory.<\/p>\n<p>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: \u2013 .<\/p>\n<p>Your submission should include the following, as well as a description about each step (what you did and why you are performing each command) and associated screenshots:<\/p>\n<p>\u2022All commands to create the above structure<\/p>\n<p>\u2022Changing to your Home directory<\/p>\n<p>\u2022Creating the directories<\/p>\n<p>\u2022Creating the empty files<\/p>\n<p>\u2022Changing all file permissions<\/p>\n<p>\u2022Show the directory list of the new structure, including a list of permissions<\/p>\n<p>\u2022A grep, sed, and awk command<\/p>\n<p>Finally, save your Word document as \u201cyourname_IP4.docx\u201d. Click the \u201cEdit\u201d button on this submission node to submit the saved document.<\/p>\n<p>Here are some tips if you have problems to submit your Word document:<\/p>\n<p>1.Make sure there are some texts (not only the screenshots) in the Word document.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"row-fluid\">\n<div class=\"alert alert-success\">\n   <a =\"https:\/\/studyacer.com\/login?redirect=https%3A%2F%2Fstudyacer.com%2Fquestion%2Fdo-you-have-answers-to-this-assignment-452495\" rel=\"nofollow\">Join now<\/a> or<br \/>\n   <a =\"https:\/\/studyacer.com\/login?redirect=https%3A%2F%2Fstudyacer.com%2Fquestion%2Fdo-you-have-answers-to-this-assignment-452495\" rel=\"nofollow\">log in<\/a> to start viewing answers.\n  <\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Interesting Commands Summary 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 <a href=\"https:\/\/www.benedictsol.com\/blogs\/interesting-commands-summary\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-126305","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/126305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=126305"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/126305\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=126305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=126305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=126305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}