Exercise 1.6 – MOTD
MOTD: The message of the day can be used to communicate information to end users, the contents of /etc/motd are displayed after a successful login but just before it executes the login shell.
1. Change the current message by editing the file /etc/motd using a text editor such as vi or vim.
“This is a test message and it will be shown every time a user logs on”
2. Save the file and then
3. Reload the sshd service.
Task by Trainer:-
- Set the MOTD to “WELCOME TO RHEL8 WORKSHOP”.
- It should always be seen while logging.