[sudo-users] tty_tickets causes script (no tty) failure
Todd C. Miller
Todd.Miller at courtesan.com
Fri Jun 19 14:05:02 MDT 2015
What version of sudo are you using? Starting with sudo 1.8.8, when
tty_tickets are enabled and there is no tty present sudo will use
a single ticket for all commands with the same parent process ID.
This works as you would like given the simple example:
$ ssh localhost "sudo id; echo SOMETHING | sudo cat"
Password:
uid=0(root) gid=0(wheel) groups=0(wheel), 20(staff)
SOMETHING
- todd
More information about the sudo-users
mailing list