if you love the “With great power comes great responsibility” message and want to see it every time you run a command, this is how you achieve that:
one should NEVER open the
/etc/sudoersfile with a normal text editor. always usesudo visudo.
- open the
/etc/sudoersfile.
sudo visudo
- add the following to the end of the file:
Defaults lecture="always"
- save and exit the file.
you might need to kill your existing sudo session with
sudo -k.
while you are here, you might also want to show asterisks when typing your password like so:
cinar@fedora ~$ sudo -v
[sudo] password for cinar: *************
or you might want to insult users who mistype their password. in either case, click the relevant link.