Exercise 1 solution
1. Configuring the time zone to GMT
We can check the current system date by executing the date
command. At the very last part of the line that is subsequently printed, the time zone will be shown. In order to configure it, we can use the timedatectl
command, or alter the /etc/localtime
symbolic link.
So, to achieve this goal, we can use one of the following:
timedatectl
set-timezone GMT
rm –fv /etc/localtime; ln –s /
usr/share/zoneinfo/GMT /etc/localtime
Now, date
should report the proper time zone.
2. Allowing passwordless login to the root user using SSH
Doing this will require the following:
- SSH must be installed and available (that means installed and started).
- The
root
user should have an SSH key generated and added to the list of authorized keys.
First, let’s tackle this with SSH, as seen in the following code snippet:
dnf –y install openssh-server; systemctl enable sshd; systemctl...