{"id":352,"date":"2025-11-30T23:18:03","date_gmt":"2025-11-30T23:18:03","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/dberr012\/?p=352"},"modified":"2025-11-30T23:18:03","modified_gmt":"2025-11-30T23:18:03","slug":"cyse270-assignment-6","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-6\/","title":{"rendered":"CYSE270 Assignment 6"},"content":{"rendered":"\n<p><strong>Task A: Get accounts and groups ready<\/strong><\/p>\n\n\n\n<p><strong>Step 1. Create three groups- employee, payroll, and admin. (You may refer to the slides under Module 2 \u2013 Group Management)<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/37923bb8-c6fa-495d-8fbf-f34601ca114b\" width=\"528\" height=\"331\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 2. Create three user accounts with a specified home directory for Sophia, Olivia, and Emma. Set the primary group for Sophia, Olivia, and Emma to &#8220;employee&#8221;, &#8220;payroll&#8221;, and &#8220;admin&#8221;, respectively. And change their login shell to \/bin\/bash. Don&#8217;t forget to set their passwords.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/9e26a74d-fc7d-43f1-ab3f-db036fdb8713\" width=\"533\" height=\"286\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3. Create a shared group called &#8220;your_midas&#8221; (replace it with your MIDAS name) and set this shared group as the above accounts&#8217; secondary group. After this step, remember to check each user&#8217;s group profile.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/1fc6ee57-6379-4aa3-a092-03918610d41c\" width=\"562\" height=\"391\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 4. Create a directory named \/home\/cyse_project, which is to be owned by the \u201cyour_midas\u201d group which is a shared group). After this step, remember to check the permission of this shared directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/12a8ee2a-cd63-4b1a-a0b7-d9780a9a8be0\" width=\"556\" height=\"285\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 5. Change the permissions of the \/home\/cyse_project directory to &#8220;rwxrwx&#8212;&#8221; using the octal<\/strong><\/p>\n\n\n\n<p><strong>method so that only the project group members have access to this directory. After this step, remember to check the permission of this shared directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/e25435fd-cec0-4350-9061-d61d0fb9c4bd\" width=\"470\" height=\"341\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 6. Switch to Sophia&#8217;s account. Change the default permissions using octal method with umask<\/strong><\/p>\n\n\n\n<p><strong>command, to &#8220;rw-r&#8212;&#8211;&#8221; for Sophia when she creates a file or directory. Check the value of umask, and permission of a new file after this step.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/b88f4b6d-5f88-4060-b6e0-e842d4e8b3ce\" width=\"471\" height=\"313\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 7. Create a new file called &#8220;Sophia_homework&#8221; in the home directory of Sophia and put your name in the file as content. After this step, remember to check the content and the permission of the new file. (ls -l Sophia_homework)<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/4362b290-f3d8-478b-b0f7-b8260e241e87\" width=\"469\" height=\"325\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 8. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory. After this step, remember to check the permission of the file in the shared directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/7fb81d13-26d9-4385-90b8-0ba8ec6a7c88\" width=\"519\" height=\"325\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 9. Switch to Emma&#8217;s account. Try to read &#8220;Sophia_homework&#8221; in the \/home\/cyse_project<\/strong><\/p>\n\n\n\n<p><strong>Directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/9459bb9a-697b-4f6a-84cb-948ffea3d3b9\" width=\"530\" height=\"391\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 10. Exit out of Emma\u2019s account and Sophia\u2019s account.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/f315352a-2f91-4dbd-acd5-3a547b3b63c3\" width=\"521\" height=\"326\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Task B: Set SGID permission&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>Step 1. Switch to root or the regular user\u2019s account. To allow group members to access the files shared in the shared directory, you need to fix the sharing issue by setting the correct SGID group values to \/home\/cyse_project directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/4b64b94e-f20a-435c-99a8-395171ed0d84\" width=\"531\" height=\"333\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 2. Switch to Sophia&#8217;s account. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory as &#8220;Sophia_homework2&#8221;.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/bf42f5a2-d009-4323-9307-c28ebcc24560\" width=\"530\" height=\"293\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3. Switch to Emma&#8217;s account. Try to read &#8220;Sophia_ homework2&#8221; in the \/home\/cyse_project<\/strong><\/p>\n\n\n\n<p><strong>Directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/af643cc6-e700-4b6c-92ce-f132cc85bb9c\" width=\"483\" height=\"303\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Task C: Unset SGID permissions&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>Step 1. Switch to root the regular user\u2019s account. To disallow group members to access the files in the shared folder, you need to fix the sharing issue by setting the correct SGID group values to<\/strong><\/p>\n\n\n\n<p><strong>\/home\/cyse_project directory to remove the group user read permission.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/64cff90c-7876-43a3-aea7-85109859d6f8\" width=\"492\" height=\"308\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 2. Switch to Sophia&#8217;s account. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory as &#8220;Sophia_homework3&#8221;.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/eefb1795-2d32-4135-aab5-e39f12997b7a\" width=\"535\" height=\"335\"><strong><\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>Step 3. Switch to Olivia&#8217;s account. Try to read &#8220;Sophia_home3&#8221; in the \/home\/cyse_project directory.<\/strong><\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/dae485bb-bda3-418a-906e-b9517c419c2d\" width=\"526\" height=\"329\"><strong><\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Task A: Get accounts and groups ready Step 1. Create three groups- employee, payroll, and admin. (You may refer to the slides under Module 2 \u2013 Group Management) Step 2. Create three user accounts with a specified home directory for Sophia, Olivia, and Emma. Set the primary group for Sophia, Olivia, and Emma to &#8220;employee&#8221;,&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-6\/\">Read More<\/a><\/div>\n","protected":false},"author":30971,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/352"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/users\/30971"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/352\/revisions\/353"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}