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....

1 answer below »

Your lab report MUST satisfy the following requirements. Otherwise, you will lose points.
R1 - Include a cover page with your UIN and name.
R2 - Align your screenshot(s) with the task ID and description.
R3 - Adjust your screenshot to a proper size (clear to read without zooming in).
R4 - Include the system timestamp in every single screenshot.
R5 - Explain your screenshot(s).


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.
Answered 3 days AfterFeb 03, 2022

Answer To: CYSE 270: Linux System for Cybersecurity Assignment: Lab 4 – Group and User Accounts CYSE 270: Linux...

Pawan answered on Feb 05 2022
123 Votes
Name:
Roll No:
Task A – User Account management
1. Open a terminal window in VM and execute the correc
t command to display user account information (including the login shell and home directory) for the current user using grep.
grep -i pawan /etc/passwd
The /home/pawan is the home directory name and /bin/bash is the shell name.
2. Execute the correct command to display user password information (including the encrypted password and password aging) for the current user using grep.
sudo grep -i pawan /etc/shadow
The long string $6$......KG0 is the encrypted password. The number various values of the time regarding password. The number 17679 is the Days since Jan 1, 1970 when the password was last changed.
3. Create a new user named xxxxx and explicitly use options to create the home directory /home/xxxxx for this user.
sudo useradd newuser --create-home
The screenshot shows that a new user by the name “newuser” is created.
4. Set a password for the new user.
sudo passwd newuser
5. Set bash shell as the default login shell for the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here