Solaris Smartcard Administration Guide

Removing a Card Reader

You might need to remove an external card reader from a system when a user no longer needs to use a smart card, or when you want to move the card reader to another system. Be sure to remove the card reader logically before you disconnect the physical device. Refer to the following procedures:

ProcedureTo Remove a Card Reader (Console)

Steps
  1. Verify that the ocfserv daemon is enabled.

    The following command provides the status of the service.


    % svcs network/rpc/ocfserv
    

    Note –

    Before you make any changes to Smartcard, you must make sure that the ocfserv daemon is enabled.


  2. (Optional) If necessary, as root, enable the ocfserv daemon.


    # svcadm enable network/rpc/ocfserv
    
  3. Click Card Readers in the Navigation pane.

  4. In the Console pane, select the card reader that you want to remove.

  5. Choose Remove Terminal from the Action menu.

  6. Click OK.

    A dialog box is displayed, asking if you are sure you want to remove the card reader.

  7. Click OK.

    A dialog box is displayed, stating that the OCF Server must be restarted to complete the operation.

  8. Click Restart OCF Now or Don't Restart OCF.

    The IFD handler is not removed until OCF is restarted. The ocfserv process is restarted the next time you start the Smartcard Console or execute the smartcard command. You can explicitly restart OCF from the command line.

ProcedureTo Remove a Card Reader (Command Line)

Steps
  1. Verify that the ocfserv daemon is enabled.

    The following command provides the status of the service.


    % svcs network/rpc/ocfserv
    

    Note –

    Before you make any changes to Smartcard, you must make sure that the ocfserv daemon is enabled.


  2. (Optional) If necessary, as root, enable the ocfserv daemon.


    # svcadm enable network/rpc/ocfserv
    
  3. Remove the card reader.


    # smartcard -c admin -t terminal -r user_friendly_reader_name -x delete
    
  4. (Optional) Disconnect the external card reader from the port.

  5. Restart ocfserv.


    # svcadm restart network/rpc/ocfserv
    

    The ocfserv process is restarted the next time you use the Smartcard Console or execute the smartcard command.