I have just updated to OSX Yosemite and every time I execute a sudo
command, the OS issues this warning before the password prompt:
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 using sudo.
How can this warning be silenced?
/usr/bin/sudo
with HexFriend reveals that about halfway through the binary the string "WARNING: Improper use of the sudo command..." is hardcoded. It might be possible to remove this string (it seems like the end of the binary is a list of null-terminated strings separated by newlines), but I'll have to investigate further. – Autolysislecture
, supported by thesudoers
file. It defaults to giving that lecture once, but it can be set toalways
. Check that. If that's not set or already set toonce
, then the problem may be with thesudo
database. That's where it would record that you had already been given the lecture. – Pictograph