One sudo for multiple terminals

bashshellsudo

Sudo root permissions are given for specific time, but only for one terminal. If I want to use sudo in another terminal in that time period, I have to type password again. How to force sudo to works across terminals?

Best Answer

Turn off tty_tickets. See sudoers(5) for more information.

Run visudo and then add a line:

Defaults !tty_tickets
Related Question