{"id":347,"date":"2025-11-24T15:23:59","date_gmt":"2025-11-24T15:23:59","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/zsumu001\/?p=347"},"modified":"2025-11-30T12:11:34","modified_gmt":"2025-11-30T12:11:34","slug":"assignment-assignment-6-file-permissions","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-assignment-6-file-permissions\/","title":{"rendered":"Assignment 6 &#8211; File Permissions"},"content":{"rendered":"\n<p>Task A: Get accounts and groups ready (70 points)<br>Step 1. Create three groups- employee, payroll, and admin. (You may refer to the slides under Module<br>2 \u2013 Group Management)<br>Step 2. Create three user accounts with a specified home directory for Sophia, Olivia, and Emma. Set<br>the primary group for Sophia, Olivia, and Emma to &#8220;employee&#8221;, &#8220;payroll&#8221;, and &#8220;admin&#8221;, respectively.<br>And change their login shell to \/bin\/bash. Don&#8217;t forget to set their passwords.<br>Step 3. Create a shared group called &#8220;your_midas&#8221; (replace it with your MIDAS name) and set this shared<br>group as the above accounts&#8217; secondary group. After this step, remember to check each user&#8217;s group<br>profile.<br>Step 4. Create a directory named \/home\/cyse_project, which is to be owned by the \u201cyour_midas\u201d group<br>which is a shared group). After this step, remember to check the permission of this shared directory.<br>Step 5. Change the permissions of the \/home\/cyse_project directory to &#8220;rwxrwx&#8212;&#8221; using the octal<br>method so that only the project group members have access to this directory. After this step, remember<br>to check the permission of this shared directory.<br>Step 6. Switch to Sophia&#8217;s account. Change the default permissions using octal method with umask<br>command, to &#8220;rw-r&#8212;&#8211;&#8221; for Sophia when she creates a file or directory. Check the value of umask, and<br>permission of a new file after this step.<br>Step 7. Create a new file called &#8220;Sophia_homework&#8221; in the home directory of Sophia and put your name<br>in the file as content. After this step, remember to check the content and the permission of the new file.<br>(ls -l Sophia_homework)<\/p>\n\n\n\n<p>Step 8. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory. After this step, remember to<br>check the permission of the file in the shared directory.<br>Step 9. Switch to Emma&#8217;s account. Try to read &#8220;Sophia_homework&#8221; in the \/home\/cyse_project<br>Directory.<br>Step 10. Exit out of Emma\u2019s account and Sophia\u2019s account.<br>Task B: Set SGID permission (15 points)<br>Step 1. Switch to root or the regular user\u2019s account. To allow group members to access the files shared<br>in the shared directory, you need to fix the sharing issue by setting the correct SGID group values to<br>\/home\/cyse_project directory.<br>Step 2. Switch to Sophia&#8217;s account. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory as<br>&#8220;Sophia_homework2&#8221;.<br>Step 3. Switch to Emma&#8217;s account. Try to read &#8220;Sophia_ homework2&#8221; in the \/home\/cyse_project<br>directory.<br>Task C: Unset SGID permissions (15 points)<br>Step 1. Switch to root the regular user\u2019s account. To disallow group members to access the files in the<br>shared folder, you need to fix the sharing issue by setting the correct SGID group values to<br>\/home\/cyse_project directory to remove the group user read permission.<br>Step 2. Switch to Sophia&#8217;s account. Copy &#8220;Sophia_homework&#8221; to the \/home\/cyse_project directory as<br>&#8220;Sophia_homework3&#8221;.<br>Step 3. Switch to Olivia&#8217;s account. Try to read &#8220;Sophia_home3&#8221; in the \/home\/cyse_project directory.<\/p>\n\n\n\n<p>Reflection<br>This assignment allowed me to practice managing user accounts, groups and permissions in Linux. I was able to create a shared group and set that up for a secondary group membership, allowing me to control shared access to resources. This assignment gave me a solid foundation in managing user and group access, which in return, will be useful for maintaining secure systems.<br><\/p>\n\n\n\n<div data-wp-interactive=\"\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!selectors.core.file.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment6-CYSE270.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of Assignment6-CYSE270.\"><\/object><a id=\"wp-block-file--media-c23b2de7-5a5e-4987-a435-0e7aac4fecff\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment6-CYSE270.pdf\">Assignment6-CYSE270<\/a><a href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment6-CYSE270.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-c23b2de7-5a5e-4987-a435-0e7aac4fecff\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Task A: Get accounts and groups ready (70 points)Step 1. Create three groups- employee, payroll, and admin. (You may refer to the slides under Module2 \u2013 Group Management)Step 2. Create <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-assignment-6-file-permissions\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":25872,"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\/zsumu001\/wp-json\/wp\/v2\/posts\/347"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/users\/25872"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/347\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}