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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!