sudo侮辱存储在macOS上的什么地方?


Answers:


11

如果您跑步,sudo strings /usr/bin/sudo您会得到(其他很多事情)

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

为了包括侮辱,--with-insults(或INSTALL文件中提到的任何其他侮辱选项)在编译时需要使用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

请参阅如何在Mac上安装sudo侮辱?有关如何自己编译的说明。


那么sudoers.so os x中的二进制文件在哪里?例如在linux中,它在/usr/lib/sudo/sudoers.so
Arduino_Sentinel

sudo已安装在中/usr/bin/sudo。macOS中的库有所不同,可能没有这样的静态库(至少sudo find /usr -name '*sudo*' 没有向该方向返回任何内容)
nohillside
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.