Show Table of Contents
Listing and Displaying
Listing and Displaying
30.7. Listing and Displaying sudo Commands, Command Groups, and Rules
Listing and Displaying sudo Commands, Command Groups, and Rules in the Web UI
- Under the Policy tab, click Sudo and select Sudo Rules, Sudo Commands, or Sudo Command Groups.
- Click the name of the rule, command, or command group to display its configuration page.
Listing and Displaying sudo Commands, Command Groups, and Rules from the Command Line
To list all commands, command groups, and rules, use the following commands:
ipa sudocmd-findipa sudocmdgroup-findipa sudorule-find
To display information about a particular command, command group, or rule, use the following commands:
ipa sudocmd-showipa sudocmdgroup-showipa sudorule-show
For example, to display information about the
/usr/bin/less command:
$ ipa sudocmd-show /usr/bin/less Sudo Command: /usr/bin/less Description: For reading log files. Sudo Command Groups: files
For more information about these commands and the options they accept, run them with the
--help option added.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.