[sudo-users] tty_tickets causes script (no tty) failure

John Wiersba jrw32982 at yahoo.com
Fri Jun 19 13:15:06 MDT 2015

In this simplified example, with ! tty_tickets, the following command
   echo MYPW | ssh SERVER "sudo id; echo SOMETHING | sudo CMD"
prompts only once for the password, because a ticket is created.

However, with tty_tickets set, the same command doesn't create a ticket and prompts twice.  This causes a failure due to the fact that no second password is available.  Is there any way to fix this besides turning off tty_tickets or using ssh -t?  Using ssh -t is not an option since various data is piped to the remote command (along with the password).

Thanks!-- John

More information about the sudo-users mailing list