cancel
Showing results for 
Search instead for 
Did you mean: 
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 607 Views

RHEL 8, RH124, Chapter 6, Section 3, Configuring Sudo - error in explanation?

I'm fairly certain that there is an error in this explanation.

For example, the following line from the /etc/sudoers file enables sudo access for members of group wheel.

%wheel ALL=(ALL) ALL

In this line, %wheel is the user or group to whom the rule applies. A % specifies that this is a group, group wheel. The ALL=(ALL) specifies that on any host that might have this file, wheel can run any command. The final ALL specifies that wheel can run those commands as any user on the system.

From my understanding, it has the explanation of (ALL) and the final ALL backwards.

(ALL) is in the position to define the "run as" what user [or group], with (ALL) meaning any user [or group].

The final ALL defines the command that the rule applies to.

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.