Unable to save sudoers file due to syntax error.

Solution Verified - Updated -

Issue

  • Unable to save sudoers file due to syntax error while trying to add a new sudo entry.
  • The following message is showing while trying to save.

    >>> sudoers file: syntax error, line 34 <<< 
    What now?
    

Environment

  • Red Hat Enterprise Linux 4.8

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.