On my iMac 5k (iMac15,1) since the update on macOS 10.12.4 sudo
is very slow.
It takes about 5 minutes to the password prompt.
The problem is not on my MacBook Pro (MacBookPro13,1) with the same operating system 10.12.4.
With 10.12.3. I had no problems on the iMac.
- Open Terminal
- Run Command:
date; sudo date
Instant password prompt.
Password prompt after about 5 minutes.
nils@imac5k ~ $ date; sudo date
Thu Apr 6 19:55:53 CEST 2017
Password:
Thu Apr 6 20:00:25 CEST 2017
I have found the following article: https://macperformanceguide.com/blog/2017/20170407_1157-macOS-10_12_4-sudo-broken-fix.html
He describes that the problem can be corrected with a change of the file /etc/sudoers
(use visudo
command).
So I've compared the files on my iMac and MacBook. In fact, they are different.
In my file are even more entries with /sbin/kextunload
as described in the article.
After I have edited all the lines (the last three) with the content /sbin/kextunload
, the problem is fixed.
A copy of the working version from the MacBook to the iMac also helped.
Did you resolve this?