Access a Linux desktop and add a standard user. Using a Linux terminal, gather information about the system and set the hostname.
Outcomes
Use a virtual console and the Cockpit console to update passwords.
Review the machine's time clock status.
As the student user on the workstation machine, use the lab command to prepare your environment for this exercise, and to ensure that all required resources are available.
[student@workstation ~]$ lab start access-review
In this scenario, you have multiple accounts on the machine. You update the password for each of those accounts by switching to the account first.
Instructions
On the fourth virtual console, update the developer1 user's password.
Set lab2-rh104-1 as the new password.
Switch to the fourth virtual console by pressing Alt+Ctrl+F4.
Log in as the developer1 user and use redhat as the password.
Review the passwd command help information.
The --help (or -h) option prints information about the command itself, and the options you can use to alter the command's outcome.
[developer1@workstation ~]$ passwd --help
Usage: passwd [OPTION...] <accountName>
-k, --keep-tokens keep non-expired authentication tokens
-d, --delete delete the password for the named account (root only); also removes password lock if any
...output omitted...Update the developer1 user password to lab2-rh104-1.
Use redhat as the current password.
[developer1@workstation ~]$passwdChanging password for user developer1. Current password:redhatNew password:lab2-rh104-1Retype new password:lab2-rh104-1passwd: all authentication tokens updated successfully.
Test the new password by closing the session and logging back in.
[developer1@workstation ~]$exitworkstation login:developer1Password:lab2-rh104-1[developer1@workstation ~]$
Close the virtual console session.
[developer1@workstation ~]$ exitReturn to the desktop session by pressing Alt+Ctrl+F2.
$ Alt+Ctrl+F2On the Cockpit console, update the developer2 user's password.
Set lab2-rh104-2 as the new password.
Click in the upper left of the desktop, and type and select Firefox.
Navigate to https://localhost:9090.
Authenticate by using developer2 as the user and redhat as the password.
Click .
In the left panel, click , and then click .
Use redhat as the .
Enter lab2-rh104-2 as the .
Confirm the new password.
Click .
Confirm that the developer2 user's password is updated.
Log out of the Cockpit console by clicking in the upper right corner.
Click .
Authenticate by using developer2 as the user and lab2-rh104-2 as the password.
Click .
Log out of the Cockpit console by clicking in the upper right corner. Click . Close the Firefox window.
Ensure that the machine time clock is synced with a time server.
Review the system clock by using the date command.
[student@workstation ~]$ date
Fri Sep 29 14:24:58 EDT 2023The information given by the date command is not enough to determine whether the system clock is synced with a time server.
Review the system clock by using the timedatectl command.
[student@workstation ~]$timedatectlLocal time: Fri 2023-09-29 14:25:56 EDT Universal time: Fri 2023-09-29 18:25:56 UTC RTC time: Fri 2023-09-29 18:25:56 Time zone: America/New_York (EDT, -0400)System clock synchronized: yesNTP service: active RTC in local TZ: no
The output shows that the system clock is synced with a time server.