Speed up sudo operations

Jan 15, '03 10:32:51AM

Contributed by: bhines

The "sudo" command on Jaguar takes almost a second to launch which can be annoying. This is due to the connection to the security server. To revert to the 10.1 behavior, edit (using sudo) the file /etc/pam.d/sudo. Comment out the "securityserver.so" (second) line, so it looks like:

 #auth       sufficient     pam_securityserver.so
The "sudo" command is now effectively instant! The effect is immediate and very noticeable.

[Editor's note: Editing this file as root with sudo in vi, I had to use "w!" to force the file to be written, as the default permissions do not give root write access! Also, this would probably be a good spot to say something like "Disabling access to the security server may compromise your machine's security." Does anyone know for certain what impact, if any, disabling this check may have?]

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030115073251725