Be sure to type the new PIN correctly because you will not be prompted to confirm it.
Make sure the smart card is inserted in the card reader.
Become superuser.
Change the PIN.
# smartcard -c init -A A000000062030400 -P '$$$java' pin=001234 |
Enclose the default PIN, $$$$java, or any PIN containing shell special-characters (such as $) within single quotes. Otherwise, the shell tries to interpret the PIN as a variable, and the command fails.