In Linux, we can perform a range of security tasks to safeguard our system. Up to this point in the book, we've been performing most of our administrative tasks as the root user. Can we perform some of these tasks as a regular user, instead? Well, we can use a regular user account and give it certain root privileges, without having to actually log in as the root user. This is made possible with the /etc/sudoers file. We'll work with the Fedora 28 system in this demo. If we try to view boot files inside /boot/grub2/, we will be presented with the following:
[philip@localhost ~]$ ls /boot/grub2/
ls: cannot open directory '/boot/grub2/': Permission denied
[philip@localhost ~]$
Based on the preceding information, the user does not have sufficient permission to view the contents of /boot/grub2; we have received a Permission denied message. Adding to...