{"id":345,"date":"2025-11-24T15:23:59","date_gmt":"2025-11-24T15:23:59","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/zsumu001\/?p=345"},"modified":"2025-11-30T12:12:24","modified_gmt":"2025-11-30T12:12:24","slug":"assignment-assignment-4-group-and-user-management","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-assignment-4-group-and-user-management\/","title":{"rendered":"Assignment 4 &#8211; Group and User Management"},"content":{"rendered":"\n<p>Goal:<br>The goal of this lab is to familiarize students with the fundamental tasks of managing user<br>and group accounts in Linux. By completing this lab, students will gain practical experience<br>in creating, modifying, and deleting accounts, as well as managing group memberships<br>and permissions, which are essential skills in system administration and cybersecurity.<br>Submission Instructions:<br>\u2022 Complete all tasks in Task A and Task B on your chosen Ubuntu\/Kali VM.<br>\u2022 Take screenshots for each step as evidence of successful command execution.<br>\u2022 Save all your screenshots and results in a single PDF or Word document.<br>\u2022 Ensure that all commands are executed correctly and include detailed explanations<br>for each step taken.<\/p>\n\n\n\n<p>In this assignment, you should replace xxxxx with your MIDAS ID in all occurrences.<br>Task A \u2013 User Account management (8 * 5 = 40 points)<br>1. Open a terminal window in VM and execute the correct command to display user account<br>information (including the login shell and home directory) for the current user using grep.<br>2. Execute the correct command to display user password information (including the encrypted<br>password and password aging) for the current user using grep.<br>3. Create a new user named xxxxx and explicitly use options to create the home directory<br>\/home\/xxxxx for this user.<br>4. Set a password for the new user.<br>5. Set bash shell as the default login shell for the new user xxxxx, then verify the change.<br>6. Execute the correct command to display user password information (including the encrypted<br>password and password aging) for the new user xxxxx using grep.<br>7. Add the new user xxxxx to sudo group without overriding the existing group membership.<br>8. Switch to the new user\u2019s account.<br>Task B \u2013 Group account management (12 * 5 = 60 points)<br>Use Linux commands to execute the following tasks:<br>1. Return to your home directory and determine the shell you are using.<br>2. Display the current user\u2019s ID and group membership.<br>3. Display the group membership of the root account.<br>4. Run the correct command to determine the user owner and group owner of the \/etc\/group<br>file.<br>5. Create a new group named test and use your UIN as the GID.<br>6. Display the group account information for the test group using grep.<br>7. Change the group name of the test group to newtest.<br>8. Add the current account (xxxxx) as a secondary member of the newtest group without<br>overriding this user\u2019s current group membership.<br>9. Create a new file testfile in the account\u2019s home directory, then change the group owner to<br>newtest.<br>10. Display the user owner and group owner information of the file testfile.<br>11. Delete the newtest group, then repeat the previous step. What do you find?<br>12. Delete the user xxxxx along with the home directory using a single command<br><br>Reflection<br>This lab focused on managing user and group accounts. I learned how to create and manage user accounts, modify user attributes, and manage group memberships.  I utilized commans such as grep, usermod, groupadd, chown, and chgrp to manage account information, files permissions and groups.<\/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\/Assignment-4-Group-and-User-Management.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of Assignment-4-Group-and-User-Management.\"><\/object><a id=\"wp-block-file--media-00c16555-a7c4-4ea6-a201-8561bc4c7ea7\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment-4-Group-and-User-Management.pdf\">Assignment-4-Group-and-User-Management<\/a><a href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment-4-Group-and-User-Management.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-00c16555-a7c4-4ea6-a201-8561bc4c7ea7\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Goal:The goal of this lab is to familiarize students with the fundamental tasks of managing userand group accounts in Linux. By completing this lab, students will gain practical experiencein creating, <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-assignment-4-group-and-user-management\/\">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\/345"}],"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=345"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/345\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}