#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    6
    Rep Power
    0

    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:

    Code:
    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # 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
    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
    Thanks in advance,
    Mohan.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    138
    Rep Power
    2
    Well, this is after all a python forum. Your question will be better placed in a general linux forum.

IMN logo majestic logo threadwatch logo seochat tools logo