MacOS – How to make the pcscd daemon load at startup on Lion

daemonsmacosstartup

I've got an obscure cryptographic USB token that works pretty good with Lion except I need to run…

sudo /usr/sbin/pcscd -adf

…each time I want to use it because it doesn't load automatically.

How to make it load at startup?

Best Answer

The problem happens, because securityd (which is supposed to load pcscd) does not start it when you insert your card. Try editing /System/Library/LaunchDaemons/com.apple.securityd.plist and add -s aggressive switch.

The section should look like this:

<array>
  <string>/usr/sbin/securityd</string>
  <string>-i</string>
  <string>-s</string>
  <string>aggressive</string>
</array>

and then reboot.

This should set securityd in aggressive card detection mode. If there is a -s off or anything like this, probably just removing it should solve your problem.

Hope this helps.