0% found this document useful (0 votes)
5 views3 pages

Lab-4-User-and-group-accounts-Linux

This document outlines the assignment for Lab 4 in the CYSE 270 course, focusing on user and group account management in a Linux environment. It includes tasks for managing user accounts, such as creating users, setting passwords, and modifying group memberships, as well as group account management tasks like creating and renaming groups. The assignment requires the use of specific Linux commands and emphasizes practical application within a virtual machine setup.

Uploaded by

coco68790
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Lab-4-User-and-group-accounts-Linux

This document outlines the assignment for Lab 4 in the CYSE 270 course, focusing on user and group account management in a Linux environment. It includes tasks for managing user accounts, such as creating users, setting passwords, and modifying group memberships, as well as group account management tasks like creating and renaming groups. The assignment requires the use of specific Linux commands and emphasizes practical application within a virtual machine setup.

Uploaded by

coco68790
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CYSE 270: Linux System for Cybersecurity

Assignment: Lab 4 – Group and User Accounts


CYSE 270: Linux System for Cybersecurity
The goal of this lab is to practice basic group and account management. You can choose the

Ubuntu VM on your local PC or VMware to complete this assignment.

In this assignment, you should replace xxxxx with your MIDAS ID in all occurrences.

Task A – 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
password and password aging) for the current user using grep.
3. Create a new user named xxxxx and explicitly use options to create the home directory
/home/xxxxx for this user.
4. Set a password for the new user.
5. Set bash shell as the default login shell for the new user xxxxx, then verify the change.
6. Execute the correct command to display user password information (including the encrypted
password and password aging) for the new user xxxxx using grep.
7. Add the new user xxxxx to sudo group without overriding the existing group membership.
8. Switch to the new user’s account.

Task B – Group account management (12 * 5 = 60 points)

Use Linux commands to execute the following tasks:


1. Return to your home directory and determine the shell you are using.
2. Display the current user’s ID and group membership.
3. Display the group membership of the root account.
4. Run the correct command to determine the user owner and group owner of the /etc/group
file.
5. Create a new group named test and use your UIN as the GID.
6. Display the group account information for the test group using grep.
7. Change the group name of the test group to newtest.
8. Add the current account (xxxxx) as a secondary member of the newtest group without
overriding this user’s current group membership.
9. Create a new file testfile in the account’s home directory, then change the group owner to
newtest.
10. Display the user owner and group owner information of the file testfile.

11. Delete the newtest group, then repeat the previous step. What do you find?

12. Delete the user xxxxx along with the home directory using a single command.

You might also like