Write My Paper Button

WhatsApp Widget

LINUX 1 – My Assignment Tutor

COMP 83

LINUX 1

Lab 4

The name of the machine should be YourName-XXX, where XXX is the last 3 digits of your student ID. Whenever possible make sure your screenshots are showing the name of the Linux machine on the command-line.

1. Create the following users with the following attributes. [5]

Username Comment Expire Date
Calvin Consultant 2022-06-15
Joyce Engineer
Jillian Programmer 2021-12-31
Patrick
Carter

Use the appropriate command to display the last five users you have just created on the screen.

2. Display all contents (including hidden files) in Carter home directory. [5]

3. In what directory was the .bashrc file copied from? [5]

___________________________

4. Create a password for Jillian (use this password Pa$$word) and display the encrypted password on the screen using the appropriate command and Linux file. [5]

5. Add a comment for Patrick to show Developer and configure his user account expiry date to 2022-01-01. Display the change of Patrick user account attributes on the screen. [5]

6. Modify Joyce login name to JAdam. [5]

7. Delete Carter user account and display the content of the appropriate file to verify that the account no longer exists. [5]

8. Lock Jillian user account and display the last five lines of the /etc/shadow file on the screen. [5]

9. What symbol in the /etc/shadow file indicates that Jillian account is locked? [5]

___________________________________

Mark:__________

~End of Lab~

CLAIM YOUR 30% OFF TODAY

X
Don`t copy text!
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
???? Hi, how can I help?