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

Eugene J. Pate Eugene.Pate at panduit.com
Thu Jun 11 07:47:01 MDT 2015


Has anyone run into the following situation?
I'm attempting to upgrade Sudo version 1.6.9p15 to sudo.1.8.13.0.aix53.bff on
Aix 6.1.8, but I'm receiving the following msg.    Thanks

================================================================
Command: failed        stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

#---------------------------------------------------------------------
# No filesets on the media could be used to update the currently
# installed software.
#
# Either the software is already at the same level as on the media, or
# the media contains only filesets which are not currently installed.
#---------------------------------------------------------------------
========================================================


Thanks



From: Greg Gerke [mailto:ggerke at us.ibm.com]
Sent: Tuesday, June 09, 2015 2:24 PM
To: Eugene J. Pate
Cc: sudo-users at sudo.ws; sudo-users; Todd C. Miller
Subject: Re: [sudo-users] Sudo: parse error in /etc/sudoers near line -1


What happens if you change the comments to having a space behind the pound
signs?

---
Greg Gerke
Voice: 402.422.7819
Email: ggerke at us.ibm.com<mailto:ggerke at us.ibm.com>

[Inactive hide details for "Eugene J. Pate" ---06/09/2015 01:54:31 PM---Below
is a copy of my sudo file rimini is the group I'm]"Eugene J. Pate"
---06/09/2015 01:54:31 PM---Below is a copy of my sudo file rimini is the
group I'm having problems with, I can sudo to viprsrm

From: "Eugene J. Pate"
<Eugene.Pate at panduit.com<mailto:Eugene.Pate at panduit.com>>
To: "Todd C. Miller"
<Todd.Miller at courtesan.com<mailto:Todd.Miller at courtesan.com>>
Cc: "sudo-users at sudo.ws<mailto:sudo-users at sudo.ws>"
<sudo-users at sudo.ws<mailto:sudo-users at sudo.ws>>
Date: 06/09/2015 01:54 PM
Subject: Re: [sudo-users] Sudo: parse error in /etc/sudoers near line -1
Sent by: "sudo-users"
<sudo-users-bounces at sudo.ws<mailto:sudo-users-bounces at sudo.ws>>

________________________________



Below is a copy of my sudo file
rimini is the group I'm having problems with, I can sudo to viprsrm without
the parse error.

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
#
# User alias specification
#
# Cmnd alias specification
#
# Defaults specification
#
# Runas alias specification
#
# User privilege specification
root    ALL=(ALL) ALL
#
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL) ALL
#
# Same thing without a password
# %wheel        ALL=(ALL) NOPASSWD: ALL
#
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

# let oracle accounts do some things to start/stop the database
oratst  ALL=(appltst)   NOPASSWD:ALL
oravis  ALL=(applvis)   NOPASSWD:ALL
oracle  ALL=(applmgr)   NOPASSWD:ALL
orat01a ALL=(applt01a)  NOPASSWD:ALL

sadbam  ALL=(oracle)    NOPASSWD:ALL
sadba   ALL=(oracle)    NOPASSWD:ALL
sadbam  ALL=(applmgr)   NOPASSWD:ALL
sadba   ALL=(applmgr)   NOPASSWD:ALL

#allows user viprsm to run the inq command
viprsrm ALL=(ALL)       NOPASSWD:/usr/lpp/EMC/Symmetrix/bin/inq.aix64_51

#Rimini Street accounts can sudo as oracle or applmgr
%rimini ALL=(oracle)    NOPASSWD:ALL
%rimini ALL=(applmgr)   NOPASSWD:ALL

-----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<mailto: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<mailto:sudo-users at sudo.ws>> For
list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users
____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws<mailto:sudo-users at sudo.ws>>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users

[demime 1.01d removed an attachment of type image/gif which had a name of image001.gif]


More information about the sudo-users mailing list