13

I'm letting one of my coding buddies have root access to my Raspberry Pi, and as I was getting everything set up, I tested sudo as him.

It gave me "the speech":

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

What I'm wondering is how to tell sudo to repeat that once. I can't find where it stores the "warned users" list, and I don't want to go overkill and tell it to give The Speech every time.

9

You should be able to restore the "seen lecture" status by removing the user's sudo ticket directory, which is probably under /var/run/sudo.

  • +1 On my Debian, it's under /var/lib/sudo – Joseph R. Sep 29 '13 at 22:56
  • Nope, nothing. find /var | grep -i sudo only returns /var/db/sudo, an empty directory, even when run as root. (Well, there is some stuff in /var/lib/pacman/local, but upon inspection it seems to be all stuff related to the Pacman cache.) – JamesTheAwesomeDude Oct 1 '13 at 2:53
  • It's possible that it's not under /var. Try looking at the whole filesystem. – Greg Hewgill Oct 1 '13 at 3:05
  • @GregHewgill Nope, can't find anything good. Did I miss it? pastebin.com/dSVFfwYq – JamesTheAwesomeDude Oct 14 '13 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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