[sudo-users] Sudo: parse error in /etc/sudoers near line -1

Eugene J. Pate Eugene.Pate at panduit.com
Tue Jun 9 12:30:08 MDT 2015

Thanks for the reply Todd.

Per your suggestion, I ran the command and it came back with an "ok".

# visudo -c
/etc/sudoers file parsed OK

If you have any more suggestion I would greatly appreciate it.


-----Original Message-----
From: sudo-users [mailto:sudo-users-bounces at sudo.ws] On Behalf Of Todd C. Miller
Sent: Tuesday, June 09, 2015 1:15 PM
To: Eugene J. Pate
Cc: sudo-users at sudo.ws
Subject: Re: [sudo-users] Sudo: parse error in /etc/sudoers near line -1

On Tue, 09 Jun 2015 16:13:28 -0000, "Eugene J. Pate" wrote:

> Hi guys I'm receiving the following error on an AIX server, can someone help?
> Sudo su - oracle
> "Sudo: parse error in /etc/sudoers near line -1"

You should try running visudo as root.  Chances are there is a syntax error on the first line.  If you just want to check the syntax you can run:

# visudo -c

 - todd
sudo-users mailing list <sudo-users at sudo.ws> For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list