Question
Read the following sections: Using sudo to Gain root Privileges on page 428 of Sobell sudoers: Configuring sudo on page 433 of Sobell Procedure 1.
Read the following sections:
Using sudo to Gain root Privileges on page 428 of Sobell
sudoers: Configuring sudo on page 433 of Sobell
Procedure
1. Working with root privileges, use visudo to modify the /etc/sudoers file
(Sobell, page 433).
Add a line to the end of the file that grants the user named student full root
privileges (while running sudo).
2. Working as student, try to display the end of the /var/log/messages file
without using sudo. Next, display the same file using sudo; you will need to
supply your password (not the root password).
3. Working as student, use sudo to gain root privileges and use visudo to modify
the /etc/sudoers file. Did you have to enter your password? Why or why
not?
Add lines to the end of the sudoers file that
a. Add a user alias named ADMIN that includes max and casey.
b. Add a command alias named MEDIA that includes mount and umount.
100 Sobell Lab Manual
c. Allow ADMIN users and ben to run the MEDIA commands.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started