{"id":348,"date":"2025-11-30T23:15:53","date_gmt":"2025-11-30T23:15:53","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/dberr012\/?p=348"},"modified":"2025-11-30T23:15:53","modified_gmt":"2025-11-30T23:15:53","slug":"cyse270-assignment-4","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-4\/","title":{"rendered":"CYSE270 Assignment 4"},"content":{"rendered":"\n<p><strong>Task A \u2013 User Account management (8 * 5 = 40 points)<\/strong><\/p>\n\n\n\n<p>1. Open a terminal window in VM and execute the correct command to display user account<\/p>\n\n\n\n<p>information (including the login shell and home directory) for the current user using grep.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/0e0e3e82-776a-4a24-9c00-2d7162a6a524\" width=\"641.2375690607735\" height=\"343\"><\/li>\n<\/ul>\n\n\n\n<p>2. Execute the correct command to display user password information (including the encrypted<\/p>\n\n\n\n<p>password and password aging) for the current user using grep.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/3ea97eac-fa5d-49f3-b384-ed9207549c0c\" width=\"809.4309764309764\" height=\"285\"><\/li>\n<\/ul>\n\n\n\n<p>3. Create a new user named xxxxx and explicitly use options to create the home directory<\/p>\n\n\n\n<p>\/home\/xxxxx for this user.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/1a3f64ba-6e38-4b07-9d85-63de24a2393f\" width=\"846.8571428571429\" height=\"391\"><br><\/li>\n<\/ul>\n\n\n\n<p>4. Set a password for the new user.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/2cbbea08-0ad5-4a24-8e39-d1e7ad443a37\" width=\"839.9389312977099\" height=\"323\"><\/li>\n<\/ul>\n\n\n\n<p>5. Set bash shell as the default login shell for the new user xxxxx, then verify the change.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/7b186be3-4aeb-4d4d-b8a8-efb227c71686\" width=\"809.6\" height=\"335\"><\/li>\n<\/ul>\n\n\n\n<p>6. Execute the correct command to display user password information (including the encrypted<\/p>\n\n\n\n<p>password and password aging) for the new user xxxxx using grep.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/cde2916f-5b67-4176-8427-09cf9397ffa5\" width=\"995.2227074235808\" height=\"326\"><\/li>\n<\/ul>\n\n\n\n<p>7. Add the new user xxxxx to sudo group without overriding the existing group membership.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/6a1c6c9b-fdcb-4ad6-a5ae-045eeb35d23b\" width=\"975.6037151702786\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>8. Switch to the new user\u2019s account.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/462bdc8e-738f-47ee-b502-c16bf872d409\" width=\"971.0270270270271\" height=\"315\"><\/li>\n<\/ul>\n\n\n\n<p><strong>Task B \u2013 Group account management (12 * 5 = 60 points)<\/strong><\/p>\n\n\n\n<p>Use Linux commands to execute the following tasks:<\/p>\n\n\n\n<p>1. Return to your home directory and determine the shell you are using.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/23986979-e07b-4a3a-90b0-82ee73b243c9\" width=\"921.4205607476636\" height=\"315\"><\/li>\n<\/ul>\n\n\n\n<p>2. Display the current user\u2019s ID and group membership.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/6c7445b1-ba89-4c98-ac92-089d63f2b00b\" width=\"988.3229813664597\" height=\"310\"><\/li>\n<\/ul>\n\n\n\n<p>3. Display the group membership of the root account.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/26e0b543-5b37-44cc-a63e-644dfebc7e55\" width=\"924.2264150943396\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>4. Run the correct command to determine the user owner and group owner of the \/etc\/group<\/p>\n\n\n\n<p>File.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/28ac1863-03a7-4998-b55d-e6b27eb90d43\" width=\"1005.4248927038627\" height=\"317\"><\/li>\n<\/ul>\n\n\n\n<p>5. Create a new group named test and use your UIN as the GID.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/b40757e4-9399-4f1f-bbb6-762f1555efa4\" width=\"863.1028037383178\" height=\"348\"><\/li>\n<\/ul>\n\n\n\n<p>6. Display the group account information for the test group using grep.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/65b10cf2-d154-4b48-950c-25f2d7d75a50\" width=\"867.4042553191489\" height=\"342\"><\/li>\n<\/ul>\n\n\n\n<p>7. Change the group name of the test group to newtest.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/1c94a06b-41df-41e1-9938-286730b9d036\" width=\"963.3\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>8. Add the current account (xxxxx) as a secondary member of the newtest group without<\/p>\n\n\n\n<p>overriding this user\u2019s current group membership.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/e20bd388-2a99-4d2e-8e91-30c7d1c31e57\" width=\"962.7165354330709\" height=\"308\"><\/li>\n<\/ul>\n\n\n\n<p>9. Create a new file testfile in the account\u2019s home directory, then change the group owner to<\/p>\n\n\n\n<p>Newtest.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/36b7ec7e-d6ee-42e3-804d-5d792d91adb4\" width=\"1032.2242990654206\" height=\"329\"><\/li>\n<\/ul>\n\n\n\n<p>10. Display the user owner and group owner information of the file testfile.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/e84e0f4d-08b4-4040-ba42-9ee704b80c45\" width=\"1047.0835913312694\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>11. Delete the newtest group, then repeat the previous step. What do you find?<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/fa94e309-9bf3-4946-98db-729a3e852195\" width=\"1036.0754716981132\" height=\"307\"><\/li>\n<\/ul>\n\n\n\n<p>12. Delete the user xxxxx along with the home directory using a single command.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/50d29ac9-b88a-4497-877d-21d1e1dd80a8\" width=\"1001.5297805642633\" height=\"293\"><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Task A \u2013 User Account management (8 * 5 = 40 points) 1. Open a terminal window in VM and execute the correct command to display user account information (including the login shell and home directory) for the current user using grep. 2. Execute the correct command to display user password information (including the encrypted&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-4\/\">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\/348"}],"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=348"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/348\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}