Results 1 to 2 of 2

Thread: sudo: no tty present and no askpass program specified

  1. #1
    Join Date
    Nov 2013
    Beans
    2

    sudo: no tty present and no askpass program specified

    Hello

    I am trying to install BigInsights free edition from IBM's website (on Ubuntu 12.04). They have a pre-install checker available. Infosphere BigInsights pre-installation checker v2.1.0.1/

    When I run the script, I get the following error.

    ==============================================
    BigInsights Pre-Installation Check Script v1.0
    ==============================================


    [INFO] No cluster hostname list passed in; using localhost
    [INFO] Verifying for single-node cluster.
    [INFO] Running in QUICK_START mode.
    [INFO] Dig detected.


    Verify root passwordless SSH [FAILED]
    Verify majid passwordless SSH [ OK ]
    Verify majid has NOPASSWD in /etc/sudoerssudo: no tty present and no askpass program specified
    Sorry, try again.
    sudo: no tty present and no askpass program specified
    Sorry, try again.
    sudo: no tty present and no askpass program specified
    Sorry, try again.
    sudo: 3 incorrect password attempts
    [FAILED]
    Verify requiretty disabled for majid in /etc/sudoers [FAILED]
    [FATAL] Passwordless SSH not enabled for root or majid, terminating early.

    I did some research and found that the requiretty can be disabled in Sudoers for a given user. So I changed by Sudoers file and restarted the computer. But I still get the same error.

    There is no help available on this subject anywhere. Could someone please help me resolve this error? I would appreciate it!

    I am pretty new to Linux and have just started self educating with the help of "The Linux Command Line" book. Coming from windows and Mainframe background. I really do not want to discouraged because I could not get my head round something that might be so trivial.
    Attached Files Attached Files
    Last edited by majidalig; November 28th, 2013 at 08:02 AM.

  2. #2
    Join Date
    Sep 2006
    Beans
    7,699
    Distro
    Lubuntu Development Release

    Re: sudo: no tty present and no askpass program specified

    You could try adjusting the defaults for that particular user. Maybe adding something like this would work:

    Code:
    Defaults:majidalig !requiretty
    Read the manual page for sudoers to be sure.

    About the "Verify root passwordless SSH", that looks very suspicious. Can you show the part of the script that is checking for that? What do the instructions say about the key? Giving a blank, passwordless root login is quite unsafe. Maybe it gives instructions on what the key should be restricted to, making it a single-purpose key. That would be more reasonable.
    Last edited by Lars Noodén; November 28th, 2013 at 09:15 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •