8

How do I get all sudo insults messages list on macOS?

2
11

If you run sudo strings /usr/bin/sudo you get (among a lot of other things)

Sudo version %s
1.8.17p1
Configure options: %s
--with-password-timeout=0 --disable-setreuid --with-env-editor --with-pam
--with-libraries=bsm --with-noexec=no --sysconfdir=/private/etc
--without-lecture --enable-static-sudoers --with-rundir=/var/db/sudo

For insults to be included, --with-insults (or any of the other insult options mentioned in the INSTALL file) would need to be used when compiling sudo:

--with-insults
    Define this if you want to be insulted for typing an incorrect password
    just like the original sudo(8).  This is off by default.
    Sudoers option: insults

See How do I install sudo insults on Mac? for instructions on how to compile it yourself.

2
  • so where is the binary file sudoers.so in os x?for example in linux its in /usr/lib/sudo/sudoers.so – Arduino_Sentinel Dec 29 '16 at 15:04
  • sudo is installed in /usr/bin/sudo. Libraries are different in macOS, there probably isn't a static library as such (at least sudo find /usr -name '*sudo*' didn't return anything in that direction) – nohillside Dec 29 '16 at 15:22

You must log in to answer this question.

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