Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions