1820485 Members
2401 Online
109624 Solutions
New Discussion

Bakcup command get error

 
SOLVED
Go to solution
John Ferro
Regular Advisor

Bakcup command get error

Hello,

I'm running a backup command: ssh Remote Host "/usr/local/bin/sudo /usr/sbin/savegrp -c emcproxy -G emcproxy_db_EDL188A”

and getting the following error output of the command:

sudo: no tty present and no askpass program specified.

What does that mean?

Regards,
5 REPLIES 5
Michael Steele_2
Honored Contributor
Solution

Re: Bakcup command get error

Try adding

Defaults visiblepw

...to your sudoers file.
Support Fatherhood - Stop Family Law
John Ferro
Regular Advisor

Re: Bakcup command get error

Thanks for you response, could you pls. tell me the steps on how to do?
Michael Steele_2
Honored Contributor

Re: Bakcup command get error

Paste in your /etc/sudoers file. You are looking for the name of the user / account assoicated with the error. Then add the line in.
Support Fatherhood - Stop Family Law
Hakki Aydin Ucar
Honored Contributor

Re: Bakcup command get error

There is a good doc about sudo indeed:
Check this link:
http://www.gratisoft.us/sudo/man/sudoers.html#description
F Verschuren
Esteemed Contributor

Re: Bakcup command get error

make sure you have not configured tty_tickets
If set, users must authenticate on a per-tty basis. Normally, sudo uses a directory in the ticket dir with the same name as the user running it. With this flag enabled, sudo will use a file named for the tty the user is logged in on in that directory. This flag is off by default.

askpass
The askpass option specifies the fully qualified path to a helper program used to read the user's password when no terminal is available. This may be the case when sudo is executed from a graphical (as opposed to text-based) application. The program specified by askpass should display the argument passed to it as the prompt and write the user's password to the standard output. The value of askpass may be overridden by the SUDO_ASKPASS environment variable.