[one-users] sudo: sorry, you must have a tty to run sudo

Rubens Pinheiro rubens.pinheiro at argohost.net
Wed Nov 9 12:08:36 PST 2011


Hello,
I'm trying to configure a xen host, but when I create the host, oned 
rise an error:

Wed Nov  9 16:55:33 2011 [InM][I]: STDERR follows.

Wed Nov  9 16:55:33 2011 [InM][I]: sudo: sorry, you must have a tty to run sudo

Wed Nov  9 16:55:33 2011 [InM][I]: Error executing xen.rb

Wed Nov  9 16:55:33 2011 [InM][I]: ExitCode: 255

Wed Nov  9 16:55:33 2011 [InM][E]: Error monitoring host 14 : MONITOR FAILURE 14 Could not monitor host 192.168.0.31

I've already configured sudoers file to permit scripts run sudo command.
Here is my xen host sudoers file:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults    env_reset
Defaults    requiretty

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
%xen    ALL=(ALL) NOPASSWD: /usr/sbin/xm *
%xen    ALL=(ALL) NOPASSWD: /usr/sbin/xentop *

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

#includedir /etc/sudoers.d

I've set the "Defaults requiretty" in sudoers and oneadmin is already in 
xen group, but onehost give me the same error.
"sudo: sorry, you must have a tty to run sudo"

regards,

-- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111109/ffa4d53d/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assinatura.jpg
Type: image/jpeg
Size: 49643 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111109/ffa4d53d/attachment-0002.jpg>


More information about the Users mailing list