Question: Project 10-6 In this hands-on project, you modify user accounts on Fedora Linux using command-line utilities. 1. On your Fedora Linux virtual machine, switch to
Project 10-6
In this hands-on project, you modify user accounts on Fedora Linux using command-line
utilities.
1. On your Fedora Linux virtual machine, 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 LNXrocks!.
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 bozos
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/2025 bozo and press Enter to
expire bozos user account on January 1, 2025. 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 before 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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
