sudo asks for the user's password every so often when using bash. The answers to this explains how to change that time out.
I was wondering, however, whether it would be possible to sync this. I have a rather strong password, and when I come back to my locked system, I have to enter the password first into the ubuntu screensaver, and then every single shell I am working with... so often 4-5 times in a row... Is there a way all of those entries can be combined? e.g. when the screen saver just unlocked or another terminal used
sudo won't ask again?