Differences

This shows you the differences between two versions of the page.

Link to this comparison view

topics:sudo-lecture [2017/03/25 17:24] (current)
orzfly created
Line 1: Line 1:
 +====== Always Show sudo Lectures ======
  
 +<code - /​etc/​sudoers>​
 +Defaults ​   lecture = always
 +Defaults ​   lecture_file = "/​etc/​sudo_lecture"​
 +</​code>​
 +
 +<code - /​etc/​sudo_lecture>​
 +
 +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.
 +
 +</​code>​
 +
 +<code - /​etc/​sudo_lecture>​
 +
 +WARNING: Improper use of the sudo command could lead to data loss
 +or the deletion of important system files. Please double-check your
 +typing when using sudo. Type "man sudo" for more information.
 +
 +To proceed, enter your password, or type Ctrl-C to abort.
 +
 +</​code>​
 +
 +{{tag>​sudo}}