{"id":486,"date":"2025-10-14T09:36:06","date_gmt":"2025-10-14T09:36:06","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/dhill036\/?page_id=486"},"modified":"2025-11-16T14:19:11","modified_gmt":"2025-11-16T14:19:11","slug":"lab-5","status":"publish","type":"page","link":"https:\/\/sites.wp.odu.edu\/dhill036\/lab-5\/","title":{"rendered":"Lab 6 &#8211; File Permissions."},"content":{"rendered":"\n<p class=\"has-text-align-left\"><strong>My Experience on This Lab<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-left\">In this lab, I learned how Linux manages file permissions by creating users and groups using commands like <strong>groupadd<\/strong>,<strong> useradd<\/strong>,<strong> passwd<\/strong>,<strong> <\/strong>and<strong> usermod -aG<\/strong>. I set up a shared directory with <code><strong>mkdir<\/strong><\/code> and adjusted its permissions using <strong>chmod 770<\/strong> and <strong>chgrp<\/strong>. <strong> <\/strong> I also practiced switching users with <code><strong>su <\/strong><\/code><strong>&#8211;<\/strong>, changing default permissions using <code><strong>umask<\/strong><\/code>, and copying files between directories with <code><strong>cp<\/strong><\/code>. Later, I worked with special permissions by enabling SGID<strong> chmod 2770<\/strong> and the sticky bit<strong> chmod +t<\/strong> on the shared folder to see how they affected file access.<br><\/p>\n\n\n\n<p><strong>Key Concepts I Learned<\/strong><\/p>\n\n\n\n<p>I learned how ownership, group membership, and octal permissions control who can read or modify files. I also saw how the SGID bit forces new files to inherit the shared group, and how the sticky bit prevents users from deleting files they don\u2019t own. It doesn&#8217;t stop users from utilizing scripts or modifying but strictly prohibits deletion of other users file. <br><\/p>\n\n\n\n<p><strong>Challenges Faced<\/strong><\/p>\n\n\n\n<p>Some challenges included keeping track of the correct permission values and confirming that each user had the right primary and secondary groups. Verifying access with commands such as <code><strong>cat<\/strong><\/code>, <code><strong>ls -l<\/strong><\/code>, and <code><strong>groups<\/strong><\/code> helped clarify why certain users could or could not read or modify files. Working through these steps strengthened my understanding of Linux file permission behavior.<br><\/p>\n\n\n<b>PDF Embedder requires a url attribute<\/b>\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\/dhill036\/wp-content\/uploads\/sites\/38343\/2025\/10\/annotated-Lab6-1.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of CYSE270-Lab6.\"><\/object><a id=\"wp-block-file--media-d93b50cf-58ac-4c7a-b3a6-9800ca5242b3\" href=\"https:\/\/sites.wp.odu.edu\/dhill036\/wp-content\/uploads\/sites\/38343\/2025\/10\/annotated-Lab6-1.pdf\">CYSE270-Lab6<\/a><a href=\"https:\/\/sites.wp.odu.edu\/dhill036\/wp-content\/uploads\/sites\/38343\/2025\/10\/annotated-Lab6-1.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-d93b50cf-58ac-4c7a-b3a6-9800ca5242b3\">Download<\/a><\/div>\n\n\n<b>PDF Embedder requires a url attribute<\/b>","protected":false},"excerpt":{"rendered":"<p>My Experience on This Lab In this lab, I learned how Linux manages file permissions by creating users and groups using commands like groupadd, useradd, passwd, and usermod -aG. I set up a shared directory with mkdir and adjusted its permissions using chmod 770 and chgrp. I also practiced switching users with su &#8211;, changing&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/dhill036\/lab-5\/\">Read More<\/a><\/div>\n","protected":false},"author":30353,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/pages\/486"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/users\/30353"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/comments?post=486"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/pages\/486\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/pages\/486\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/dhill036\/wp-json\/wp\/v2\/media?parent=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}