Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The first time I do sudo on openSUSE I'm always warned with a someway fancy message

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.

root's password:

After the first successful login I won't be warned again.

I'd like to be always warned. I find this message someway fancy. Is there any way to be warned like that by sudo prompt?

share|improve this question
up vote 21 down vote accepted

Create a file inside /etc/sudoers.d/ You can use this command

sudo nano /etc/sudoers.d/privacy

Now paste this line into the file.

Defaults        lecture = always

Now close Terminal/Konsole, Reopen it and try to do something with sudo.

share|improve this answer

To re-set an account to see the warning once more, delete the sudo records for that user.

root>  rm  /var/lib/sudo/<username>/*
root>  rmdir /var/lib/sudo/<username>
share|improve this answer

To add to +Michael JAMES his statement, locations might vary. On Fedora,

rpm -ql sudo

Shows a directory called:


In this directory i found another directory called 'lectured' followed by my name. Removing my name from this directory show the warning again.

Edit: This is a one time solution to reset showing the message. You could of course use crontab to empty the directory so that the message is printed on a more regular basis.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .