Keeping the fancy sudo warning forever
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?
Solution 1:
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.
Solution 2:
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>