![]() ![]() should work with 10.9 and 10.10).īy modifying the ins_*.h in the src folder you should be able to include more insults. ![]() Recompiling sudo with insults also works in older systems - you have to choose the respective tarball though (e.g. The files may be overwritten after a system update/upgrade! Last login: Wed Oct 19 02:09:33 on console Host:~ user$ sudo openssl sha1 /usr/bin/sudo* rwxr-xr-x 1 root wheel restricted 49544 Oct 19 02:01 /usr/bin/sudoreplay Or modify your path and prepend /usr/local/bin and /usr/local/sbin.Īdd the line in insert mode (simply hit i) Defaults lecture_file = "/etc/sudo_lecture" # /usr/bin/sudo usr/bin/sudo ln -s /usr/bin/sudo /usr/bin/sudoedit Sudo mv /usr/local/bin/sudo /usr/bin/sudo Sudo mv /usr/local/bin/sudoreplay /usr/bin/ The files may be installed to /usr/local/bin/ and /usr/local/sbin/ so you may have to move them (in my case I had to): sudo mv /usr/local/sbin/visudo /usr/sbin/visudo The file sudo-83/src/INSTALL contains a lot more tweak options for the configure command! ![]() configure -with-password-timeout=0 -disable-setreuid -with-env-editor -with-pam -with-libraries=bsm -with-noexec=no -sysconfdir="/private/etc" -with-timedir="/var/db/sudo" -with-all-insults Sudo cp /usr/sbin/visudo /usr/sbin/visudo.backupĬurl the Apple open source sudo: curl | tar zxf -Ĭonfigure, make and make install it. Requirements: Xcode 8.0, Sierra 10.12, probably SIP disabledīackup sudo and visudo: sudo cp /usr/bin/sudo /usr/bin/sudo.backup To install a sudo with insults you have to compile it yourself:
0 Comments
Leave a Reply. |