Problem

In this hands-on project, you lock and unlock user accounts using command-line utilities...

In this hands-on project, you lock and unlock 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/shadow and press Enter. Record the encrypted password for bozo’s user account.

3. At the command prompt, type passwd –l bozo and press Enter to lock bozo’s user account.

4. At the command prompt, type cat /etc/shadow and press Enter. What has been changed regarding the original encrypted password recorded in Step 2?

5. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and attempt to log in to the terminal using the user name of bozo and the password of secret. Were you successful?

6. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2.

7. At the command prompt, type passwd –u bozo and press Enter to unlock bozo’s user account.

8. At the command prompt, type cat /etc/shadow and press Enter. Compare the encrypted password for bozo’s user account with the one recorded in Step 2.

9. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and attempt to log in to the terminal using the user name of bozo and the password of secret. Were you successful?

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

11. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2.

12. At the command prompt, type chsh –s /bin/false bozo and press Enter to change bozo’s shell to /bin/false. What message did you receive? Was the shell changed? Type cat /etc/passwd at a command prompt to verify that the shell was changed to /bin/false for bozo’s user account.

13. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and attempt to log in to the terminal using the user name of bozo and the password of secret. Were you successful?

14. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2.

15. At the command prompt, type chsh –s /bin/bash bozo and press Enter to change bozo’s shell to /bin/bash.

16. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and attempt to log in to the terminal using the user name of bozo and the password of secret. Were you successful?

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

18. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2.

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