The first time you try and sudo on a server you get the sudo warning;
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.
Does anyone know the file you need to edit to amend this warning?
It's compiled-in:
Happily, however, my
man sudoers
admits of the stringlecture_file
which it says is theSo see if your sudo supports that, and if it does, set it to a particular filename with e.g.
and put your lecture text in that file. You may find this easier to test, as I did, if you also do (using
visudo
for best practice)which will display the lecture on every invocation of sudo. Otherwise you may run out of accounts which have never sudo'ed while you get this right!
If your sudo is old enough not to support these variables, you will need to recompile from source. That has its own attendant worries, so you will wish to think very hard before doing that purely for cosmetic reasons.