Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Apr 28 '13 at 0:52

This question came from our site for professional and enthusiast programmers.

Those are different user sessions. Would you like your sudo also affect other users (not you)? –  Sergio Tulentsev Apr 27 '13 at 15:14
run screen after you start a shell with sudo? –  jordanm Apr 27 '13 at 15:24
When I open two terminals in my window manager, from my (human) perspective it is one session. I want sudo affects every process run by me (the same user) using command sudo. I don't think I want too much. I really don't like when somebody gives me negative points, just because they never ask themselves such questions. –  Tomek Wyderka Apr 27 '13 at 15:26
@jordanm: it will work, thanks. but after parent sudo expires, I will have to detach that screen and fire sudo in parent terminal again. thanks anyway! –  Tomek Wyderka Apr 27 '13 at 15:28
Upvoting, if only because I'm curious as to how I'm viewing the opposite behavior: entering a password in one shell allows password-less sudo in other shells on the same machine. –  chepner Apr 27 '13 at 16:35

1 Answer 1

up vote 6 down vote accepted

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

share|improve this answer
This is the feature I'm looking for! Great. (Disable it by Defaults !tty_tickets) –  Tomek Wyderka Apr 28 '13 at 5:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.