sudo is not working "Sorry, user <user_B> is not allowed to execute '/bin/su - <user_A>' as root on <host>

Solution Verified - Updated -

Issue

  • Following are the lines put in /etc/sudoers to allow "duszyk" to execute "sudo su - oracle" (and this does not work, what am I doing wrong?)
User_Alias      ORA_ADMINS = duszyk
Cmnd_Alias ORA_CMDS = /usr/bin/sudo oracle su -


ORA_ADMINS      ALL=(ALL) ORA_CMDS

  • What is missing/wrong here? I have to deliver this today and the pressure is on me, please help

Environment

  • RHEL

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.