Search

30.7. Listing and Displaying sudo Commands, Command Groups, and Rules

download PDF

Listing and Displaying sudo Commands, Command Groups, and Rules in the Web UI

  1. Under the Policy tab, click Sudo and select Sudo Rules, Sudo Commands, or Sudo Command Groups.
  2. 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-find
  • ipa sudocmdgroup-find
  • ipa sudorule-find
To display information about a particular command, command group, or rule, use the following commands:
  • ipa sudocmd-show
  • ipa sudocmdgroup-show
  • ipa 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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.