• Mac OS X,  Mac Security

    Lecture Your Sudoers

    /etc/Sudoers is a file that controls what happens when you use sudo. /etc/sudo_lecture is a file that Apple includes in macOS that tells your users that what they’re about to do is dangerous. You can enable a lecture, which will be displayed each time sudo is invoked. To turn on the lecture option in sudo, open /etc/sudoers and add the following two lines (if they’re not already there): Defaults lecture=alwaysDefaults lecture_file = “/etc/sudo_lecture” Then save the file and edit /etc/sudo_lecture. Apple has kindly included the following 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…