Making use of sudoers – configuring sudo access
Whenever the system administrator wants to provide trusted users administrative access to the system without sharing the password of the root user, they can do so using the sudo
mechanism.
Once the user is given access using the sudo
mechanism, they can execute any administrative command by preceding it with sudo
. Then, the user will be asked to enter their own password. After this, the administrative command will be executed in the same way as run by the root user.
Getting ready
As the file for the configuration is predefined and the commands used are inbuilt, nothing extra needs to be configured before starting these steps.
How to do it…
- We will first create a normal account and then give it
sudo
access. ...
Get Practical Linux Security Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.