How to enable '!requiretty ' option with a sudo rule defined in Red Hat IdM (IPA) server?

Solution Unverified - Updated -

Issue

  • The option !requiretty option in sudo rule defined in IDM is not working as expected. The rule should work for all commands:
  • Having configured a sudo rule via IDM, we can't establish the !requiretty option. The rule I am creating in LDAP is:
objectClass: sudoRole
cn: Nagios
sudoCommand: ALL
sudoHost: ALL
sudoOption: !authenticate
sudoOption: !requiretty
sudoRunAsUser: ALL
sudoUser: nagios

The permissions ALL) NOPASSWD: ALL

are established well, but not the option !requiretty.

Environment

  • Red Hat IdM (IPA) server running on Red Hat Enterprise Linux 6.6 or higher
  • Red Hat IdM(IPA) client running on Red Hat Enterprise Linux 5.x
  • Red Hat IdM(IPA) client running on Red Hat Enterprise Linux 6.x
  • Red Hat IdM(IPA) client running on Red Hat Enterprise Linux 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content