[sudo-users] sudo not prompting for password across different sessions
Todd C. Miller
Todd.Miller at courtesan.com
Tue Jul 20 07:27:47 EDT 2010
In message <AANLkTilKDWBk7vYpNwrsr5Xl-THGjFD6LM6tKPNTdZl0 at mail.gmail.com>
so spake Anoop Saldanha (poonaatsoc):
> I am running 2 versions of slackware. 12 and 13.1. In both the boxes, if I
> open a terminal session, and type
>
> sudo ls /root
>
> it would ask me for a password. I enter the password and I get the ls
> results. Immediately I open a fresh(new) terminal and I again type sudo ls
> /root. But this time it doesn't ask me for a password.
>
> For every new session shouldn't sudo ask me for a password? As in, isn't
> sudo for one session specific to that session.
By default, sudo uses a single time stamp file per user. You can
make that per-tty with a line like this in sudoers:
Defaults tty_tickets
- todd
More information about the sudo-users
mailing list