Practice exercise 1
Important note
The following exercise has, by design, been created so that there will be no highlights on commands, packages, and so on. Remember what you've learned so far in order to detect the keywords to see what needs to be done.
Don't jump into the walk-through too early. Try to remember what was covered.
Exercises
- Configure the time zone to GMT.
- Allow password-less login for the root user using SSH.
- Create a user (named user) that can connect to the machine without a password.
- The user
user
should change their password every week, with 2 days' warning and 1 day of usage once expired. - The root user must be able to SSH as user without a password so that nobody can connect remotely as root using a password.
- The user user should be able to become root user without a password, and also execute commands without a password.
- When a user tries to log in over SSH, display a legal message about not allowing unauthorized...