An obvious comment, if you think the root password is important perform an "pkg uninstall sudo".
I've never actually tried that (yet), but it might be worth mentioning that, before doing so, we should probably use
sudo passwd
(i.e.,
sudo passwd root
), to change the root password to a password we know, to avoid hamstringing ourselves.
When I first started using Mac OS X I was scared to death of sudo, not understanding it well, not knowing the root password, and being so accustomed to using the root password in conjunction with
su
.
When I want to do something "sudo-like" there is always
su -m
, i.e.,
su - m root
, which gives you an id=0 without changing your SHELL or HOME directory. To that end, I usually modify
.shrc (or, in Linux-land,
.bashrc), to change the command prompt suffix from "$" to "#", with an
if... then... else...
statement, like the following:
Code:
if [ "$(id -u)" = "0" ]; then PS1="(\u@\h \w)# "; else PS1="(\u@\h \w)$ "; fi