2

Is it possible to edit this message that someone sees when a sudo command fails due to permissions problems?

1
  • 1
    Enabling insults (if support has been compiled into your version of sudo) Defaults insults will change the message, but not in customizable fashion. Sep 6, 2013 at 20:42

1 Answer 1

3

Below is the only message you are allowed to configure with the sudo conf.

badpass_message="Sorry, try again."

Reference: http://www.sudo.ws/sudoers.man.html

However to answer your question you are more than welcome to compile your own copy of sudo.

This would be the message you are getting at the link below: http://www.sudo.ws/repos/sudo/file/2c8b222a5f7f/plugins/sudoers/logging.c#l293

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .