SUDO - Parse Error (439 Views)
Reply
Occasional Advisor
JRFisher
Posts: 11
Registered: ‎03-15-2007
Message 1 of 9 (439 Views)

SUDO - Parse Error

I installed SUDO from the Internet Express Bundle and editted sudoers using VISUDO. Whenever I try to use SUDO with a simple command I get the following errors:

"parse error in /opt/iexpress/sudo/etc/sudoers near line 89"
"no valid sudoers sources found"

I have added a line like the following for my account: "mylogin ALL=(ALL) ALL"

I've also uncommented the following line: "%sudo ALL=(ALL) ALL" created a sudo group and put my account in it.

Any help would be greatly appreciated. Thanks,
John


Please use plain text.
Valued Contributor
Valued Contributor
klb
Posts: 159
Registered: ‎12-05-2003
Message 2 of 9 (439 Views)

Re: SUDO - Parse Error


You probably have a syntax error in your sudoers file. Either a malformed entry in there or some stray special characters could cause this.

Try to cat -v the file and look for trash or unnecessary characters/spaces/tabs, etc.

Maybe just remove the file and start fresh. If you installed the MAN pages, do a man on sudoers and maybe find the sytax or some examples in there.

Hth,

-klb



Please use plain text.
Occasional Advisor
JRFisher
Posts: 11
Registered: ‎03-15-2007
Message 3 of 9 (439 Views)

Re: SUDO - Parse Error

I did a CAT on the sudoers file and it appeared clean.

I then removed the whole Internet Express Bundle, rebooted and reinstalled the Internet Express Bundle.

I haven't modified the SUDOERS file yet and still get the same errors when I use sudo as a non-root user.
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,731
Registered: ‎06-21-2000
Message 4 of 9 (439 Views)

Re: SUDO - Parse Error

What is around line 89 in the file?

If you go into 'visudo' and then try to exit, does it display any errors? When using 'visudo' if there is a problem in the file it should tell you if there is a problem.
Please use plain text.
Occasional Advisor
JRFisher
Posts: 11
Registered: ‎03-15-2007
Message 5 of 9 (439 Views)

Re: SUDO - Parse Error

I get no errors when closing visodu.

Line 89 and 90 are below [lines I didn't modify]:

## Read drop-in files from /opt/iexpress/sudo/etc/sudoers.d

## (the '#' here does not indicate a comment)

I opened a case with HP and they've forwarded me to the Internet Express group [the bundle that sudo was included in].

I'll post the resolution when/if I get it fixed.
Please use plain text.
Valued Contributor
Valued Contributor
klb
Posts: 159
Registered: ‎12-05-2003
Message 6 of 9 (439 Views)

Re: SUDO - Parse Error


I suspect either syntax error or content incompatibility in the file.

It's also possible you've got a permissions issue that limits access to something as a normal non-root user or with the setuid bit on various executables related to sudo.
Please use plain text.
Occasional Advisor
JRFisher
Posts: 11
Registered: ‎03-15-2007
Message 7 of 9 (439 Views)

Re: SUDO - Parse Error

I heard back from the Internet Express Bundle team and they had me comment out the last line of the SUDOERS file [which I did not modify].
it now reads as below and works.

[last 2 lines]
## (the '#' here does not indicate a comment)
## #includedir /opt/iexpress/sudo/etc/sudoers.d

Please use plain text.
Valued Contributor
Valued Contributor
klb
Posts: 159
Registered: ‎12-05-2003
Message 8 of 9 (439 Views)

Re: SUDO - Parse Error


HAHA, Nothing like a couple built in "issues" to keep the support folks busy eh?

How much of that is going on in today's "let's just outsource everything" environment. If all HP does is pay the bills, how could they possibly know exactly what those remote groups of developers and support 'engineers' are doing?
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 9 of 9 (439 Views)

Re: SUDO - Parse Error

klb

Ou - Bullseye scary thought.
Support Fatherhood - Stop Family Law
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation