7.5. Configuring smart card authentication with lock on removal
The authselect service enables you to configure your smart card authentication to lock your screen instantly after removing the smart card from the reader. The authselect command must include the following variables:
-
with-smartcard— enabling smart card authentication -
with-smartcard-required— enabling exclusive smart card authentication (authentication with a password is disabled) with-smartcard-lock-on-removal— enforcing log out after the smart card removal참고The
with-smartcard-lock-on-removaloption only works on systems with the GNOME desktop environment. If you are using a system that isttyor console based and you remove your smart card from its reader, you are not automatically locked out of the system.
Prerequisites
- Smart card contains your certificate and private key.
- The card is inserted into the reader and connected to the computer.
-
The
authselecttool is installed on your local system.
Procedure
Enter the following command to enable smart card authentication, disable password authentication, and enforce lock on removal:
# authselect select sssd with-smartcard with-smartcard-required with-smartcard-lock-on-removal --forceNow, when you remove the card, the screen locks. You must re-insert your smart card to unlock it.