{"id":477,"date":"2024-03-26T20:55:44","date_gmt":"2024-03-26T20:55:44","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/msulaiman\/?p=477"},"modified":"2024-04-24T21:45:39","modified_gmt":"2024-04-24T21:45:39","slug":"file-permission","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/msulaiman\/2024\/03\/26\/file-permission\/","title":{"rendered":"File Permission"},"content":{"rendered":"\n<p>Step 1.\u00a0 Create three groups- employee, payroll, and admin.\u00a0<\/p>\n\n\n\n<p>Step 2. Create three user accounts with a specified home directory for Sophia, Olivia, and Emma. Set<\/p>\n\n\n\n<p>the primary group for Sophia, Olivia, and Emma to &#8220;employee&#8221;, &#8220;payroll&#8221;, and &#8220;admin&#8221;, respectively.<\/p>\n\n\n\n<p>And change their login shell to \/bin\/bash. Don&#8217;t forget to set their passwords.<\/p>\n\n\n\n<p>Step 3. Create a shared group called &#8220;your_midas&#8221; (replace it with your MIDAS name) and set this shared. The group as the above accounts\u2019 secondary group.\u00a0 After this step, remember to check each user&#8217;s group profile.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Step 5.\u00a0 Change the permissions of the \/home\/cyse_project\u00a0 directory to\u00a0 &#8220;drwxrwx&#8212;&#8221;\u00a0 using\u00a0 the octal 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.<\/p>\n\n\n\n<p>Step\u00a0 6.\u00a0 Switch to Sophia\u2019s account.\u00a0 Change the default permissions using the octal method with the umask command, to &#8220;-rw-r&#8212;&#8211;&#8221; for Sophia when she creates a file or directory. Check the value of mask, and permission of a new file after this step.<\/p>\n\n\n\n<p>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\u00a0\u00a0 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 check the permission of the file in the shared directory.\u00a0<\/p>\n\n\n\n<p>Step 9. Switch to Emma&#8217;s account. Try to read &#8220;Sophia_homework&#8221; in the \/home\/cyse_project Directory.<\/p>\n\n\n\n<p>And Extra credit:<\/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\/msulaiman\/wp-content\/uploads\/sites\/32740\/2024\/03\/Assignment-6.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of Assignment-6.\"><\/object><a id=\"wp-block-file--media-7092e3a6-1b4d-4903-81a6-41bf3aed785f\" href=\"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-content\/uploads\/sites\/32740\/2024\/03\/Assignment-6.pdf\">Assignment-6<\/a><a href=\"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-content\/uploads\/sites\/32740\/2024\/03\/Assignment-6.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-7092e3a6-1b4d-4903-81a6-41bf3aed785f\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Step 1.\u00a0 Create three groups- employee, payroll, and admin.\u00a0 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. Step 3&#8230;. <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/msulaiman\/2024\/03\/26\/file-permission\/\">Read More<\/a><\/div>\n","protected":false},"author":26250,"featured_media":716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/posts\/477"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/users\/26250"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/posts\/477\/revisions\/479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/media\/716"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/msulaiman\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}