March 16th, 2013, 01:51 AM
Problem with SUDO
Hi, I am using python version 2.7.3 on UBUNTU. I am using 'sudo' to run a bash command in login page. It is giving me error 'sudo unable to resolv host 'hostname'.
In the command line, when I use the command 'sudo hostname', it is giving me the error as well as the output. Can any one help... please?? This is my sudoers file. Please suggest me the changes in sudoers file if any:
Thanks in advance,
# This file MUST be edited with the 'visudo' command as root.
# See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
tester ALL=(ALL) NOPASSWD: ALL
www-data ALL=(ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
www-data ALL=NOPASSWD: ALL
March 16th, 2013, 11:52 AM
Well, this is after all a python forum. Your question will be better placed in a general linux forum.