Problem

In this hands-on project, you modify user accounts using command-line utilities. 1. Swi...

In this hands-on project, you modify user accounts using command-line utilities.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type cat /etc/passwd and press Enter. Record the line used to describe the user bozo.

3. At the command prompt, type cat /etc/shadow and press Enter. Record the line used to describe the user bozo.

4. At the command prompt, type usermod –l bozo2 bozo and press Enter to change the login name for the user bozo to bozo2. Next, type cat /etc/passwd at the command prompt and press Enter. Was the login name changed from bozo to bozo2? Was the UID changed? Was the home directory changed?

5. At the command prompt, type usermod –l bozo bozo2 and press Enter to change the login name for the user bozo2 back to bozo.

6. At the command prompt, type usermod –u 666 bozo and press Enter to change the UID of the user bozo to 666. Next, type cat /etc/passwd at the command prompt and press Enter. Was the UID changed?

7. At the command prompt, type usermod –f 14 bozo and press Enter to disable bozo’s user account 14 days after the password expires. Next, type cat /etc/shadow at the command prompt and press Enter. Which field was changed?

8. At the command prompt, type usermod –e “01/01/2020” bozo and press Enter to expire bozo’s user account on January 1, 2020. Next type cat /etc/shadow at the command prompt and press Enter. Which field was changed? What does the number represent in this field?

9. At the command prompt, type chage –m 2 bozo and press Enter to require that the user bozo wait at least two days before making password changes. Next, type cat /etc/shadow at the command prompt and press Enter. Which field was changed?

10. At the command prompt, type chage –M 40 bozo and press Enter to require that the user bozo change passwords every 40 days. Next, type cat /etc/shadow at the command prompt and press Enter. Which field was changed?

11. At the command prompt, type chage –W 5 bozo and press Enter to warn the user bozo five days in advance that a password change is required. Next, type cat /etc/shadow at the command prompt and press Enter. Which field was changed?

12. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 10