How to suppress messages when sudo is executed for the first time

Solution Verified - Updated -

Issue

  • How do I suppress messages when sudo is executed for the first time?

    $ sudo ls
    
    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these three things:
    
      #1) Respect the privacy of others.
      #2) Think before you type.
      #3) With great power comes great responsibility.
    
    [sudo] password for testuser: 
    

Environment

  • Red Hat Enterprise Linux
  • sudo

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