The first time a user enters sudo foo
, sudo_root prompts for the password. For a certain duration after that, sudo_root doesn't prompt for a password for any subsequent sudo foo
's in that terminal session.
- What duration is that?
- Can the duration be changed?
This is covered in the Ubuntu Sudo FAQ entry here: https://wiki.ubuntu.com/SecurityTeam/FAQ#Sudo
The default is 15 minutes, but can be changed with *timestamp_timeout* in
/etc/sudoers
. For more details see "man sudoers"