As a system administrator, most of your work can be done as your specific user. There are many tasks, however, that need to be done as the `root` user to work correctly. In this hands-on lab, you’ll be able to practice different methods of privilege escalation.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Add `bob` to `sudoers` File
Become
root
:sudo -i
Enter the
cloud_user
password.Open the
sudoers
file:visudo
Add the following somewhere after the
root
permissions are defined:bob ALL=(ALL) NOPASSWD: ALL
- Allow `adam` to Use the `journalctl` Command as `root`
Open the
sudoers
file:visudo
Add the following somewhere after the
root
permissions are defined:adam ALL=(root) NOPASSWD: /bin/journalctl