Help - Search - Members - Calendar
Full Version: SUDO - Parse Error
The Planet Forums > Control Panels > cPanel/WHM
Mark_OBBH
Here is the SUDO configuration file,

QUOTE
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

Cmnd_Alias ENSIM = /usr/local/bin/AddVirtDomain, /usr/local/bin/DeleteVirtDomain, /usr/local/bin/EnableVirtDomain, /
/usr/local/bin/DisableVirtDomain

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL
apache ALL=(ALL) NOPASSWD: ENSIM

# 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


can any one post up any idea, why this should cause this
QUOTE
>>> sudoers file: syntax error, line 13 <<<
>>> sudoers file: syntax error, line 14 <<<
sudo: parse error in /etc/sudoers near line 13
greyboy
Is the Cmnd_Alias all on one line? It should be, or you should change that trailing "/" to a "" to make it correct.

-N
Mark_OBBH
It goes on to two line where that "" was, when I change it to a / it does restart SUDO, when I type in sudo restart!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.