Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
I can’t test right now but does sudo -K followed by any use of sudo give you the fancy message again? The man page is not very precise but it may work. –  Guillaume Brunerie Nov 5 '12 at 18:28
    
It turns out I could test even without root access and it does not work, sorry for the noise. –  Guillaume Brunerie Nov 5 '12 at 18:32
add comment

1 Answer

up vote 9 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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