I use sudo in many systems, but I have one of them that makes me type my password each time I run sudo. All the others remember it for a while. This is debian 7.4 wheezy and sudo 1.8.5
I found this : https://apple.stackexchange.com/questions/10139/how-do-i-increase-sudo-password-remember-timeout
and that: https://stackoverflow.com/questions/715908/how-do-you-make-sudo-save-the-password
so I checked the dir /var/lib/sudo. I removed my old user dir and restarted sudo. I made sure when I type sudo a file is created there.
I also changed the timestamp in /etc/sudoers, I tried with -1, and 5, with no luck.
Defaults timestamp_timeout=5
I also issued a tail -f /var/log/auth and /var/log/syslog to see if anything went wrong but nothing is written there when I run sudo.
So I added a new file /etc/sudo.conf with this line:
Debug sudo /var/log/sudo_debug all@info
Now I see something in that file each time I run sudo but no error messages I can see. It looks like everything works fine.
Any hints ? thank you very much.
Defaults timestamp_timeout=5
to/etc/sudoers
where it belongs?sudo
was acting differently the on previous Debian version, but then I realized that I was usingsudo
on many different xterms. Are you having the problem when running two next commands in the same terminal window?