Setting up a non-root user
Follow these steps:
Tip
We have observed that when the administrative staff create a Linux VM, they usually give users full root access and leave it to the users to create non-root
users. Subsequently, typical users will start using root
itself for their tasks. However, this practice isn’t the most secure approach in a software environment. We strongly encourage users to create a non-root
user, and that’s the direction we’ll follow. This may be somewhat redundant and if your environment is already configured accordingly, you may choose to skip this step. These or similar steps can be used to create a non-root
user on all machines that we will use throughout this book. If you are conversant with the Linux environment, you may have a different set of steps to create a non-root
user.
- Open a CLI Terminal to work on a Linux machine.
- Log in as a
root
user using root credentials:ssh root@<ip-address-of-the-host>
- Add...