Настройка входа по токену в Raspbian.

Имеется Raspberry pi 4 и rutoken ecp.
Пытался сделать локальную аутентификацию по данной инструкции https://dev.rutoken.ru/pages/viewpage.a … d=3440696.
Выполнил все шаги но при перезагрузке не обнаружил возможности зайти по токену.
Версия linux - 4.19.97-v7l+ .

Re: Настройка входа по токену в Raspbian.

Приветствую, aleks_rovinski.

Скорее всего, не установлено дополнительное ПО для работы со смарт-картами. Вот в этой инструкции на 4 странице описание - https://www.rutoken.ru/download/manual/ … _Linux.pdf

Re: Настройка входа по токену в Raspbian.

Я проверил наличие ПО, но оказался не установленным всего один пакет(pcsc-tools). Я его установил и перезагрузился. Но к сожалению это не помогло.

Re: Настройка входа по токену в Raspbian.

Добрый день,
Скажите пожалуйста,
файлы pam_p11_opensc.so и opensc-pkcs11.so физически присутствуют в системе?
Если да, то в конфигурации необходимо вместо
/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so написать реальный путь к этому файлу

С уважением, Алексей Лазарев, Компания "Актив"

Re: Настройка входа по токену в Raspbian.

Первого файла нет в системе, второй лежит по указному пути.

Re: Настройка входа по токену в Raspbian.

Предположим, что все необходимые пакеты были установлены командой:
sudo apt-get install pcscd opensc openssl libpam-p11 libengine-pkcs11-openssl
и она прошла без ошибок

Смущает, что на raspberry путь именно тот, что в нашей инструкции. У CPU Raspberry ARM-архитектура и, по идее, вместо /x86_64-linux-gnu/ должно быть что-то типа /ARM_64/.

Думаю, следует пересобрать пакет OpenSC из исходников под raspberry из github:
https://github.com/OpenSC/OpenSC
следуя данной инструкции:
https://github.com/OpenSC/OpenSC/wiki/C … ix-flavors

С уважением, Алексей Лазарев, Компания "Актив"

Re: Настройка входа по токену в Raspbian.

Алексей Лазарев пишет:

Смущает, что на raspberry путь именно тот, что в нашей инструкции. У CPU Raspberry ARM-архитектура и, по идее, вместо /x86_64-linux-gnu/ должно быть что-то типа /ARM_64/.

Забыл уточнить, лежит в папке arm-linux-gnueabihf.

Re: Настройка входа по токену в Raspbian.

В любом случае, файл библиотеки pam-модуля необходим необходим.
Проверьте также наличие pam_p11.so в системе. Если его нет, то пересоберите:
https://github.com/OpenSC/pam_p11

С уважением, Алексей Лазарев, Компания "Актив"

Re: Настройка входа по токену в Raspbian.

также, можно заменить библиотеку PKCS (opensc-pkcs11.so) на нашу:
https://www.rutoken.ru/support/download … other.html

С уважением, Алексей Лазарев, Компания "Актив"

Re: Настройка входа по токену в Raspbian.

К сожалению даже после выполнения этих инструкций, аутентификация по рутокену не заработала.

Re: Настройка входа по токену в Raspbian.

aleks_rovinski, расскажите, вы обновили конфигурацию PAM?

sudo pam-auth-update

В появившемся диалоге необходимо удостовериться, что выбран pam_p11.
Отправьте нам, пожалуйста, скриншот окна.

Покажите, пожалуйста, содержимое токена: 

pkcs15-tool --list-keys

и 

pkcs15-tool --list-certificates

Re: Настройка входа по токену в Raspbian.

Да, я обновил конфигурацию PAM.
Вот вывод первой команды:
Using reader with a card: Aktiv Rutoken ECP 00 00
Private RSA Key [Certificate]
    Object Flags   : [0x3], private, modifiable
    Usage          : [0x4], sign
    Access Flags   : [0x1D], sensitive, alwaysSensitive, neverExtract, local
    ModLength      : 2048
    Key ref        : 1 (0x1)
    Native         : yes
    Path           : 3f001000100060020001
    Auth ID        : 02
    ID             : 45
    MD:guid        : 3546f0f5-90d1-7176-0d0f-3ccf1e19a929

вот второй:
Using reader with a card: Aktiv Rutoken ECP 00 00
X.509 Certificate [Certificate]
    Object Flags   : [0x2], modifiable
    Authority      : no
    Path           : 3f0050000300
    ID             : 45
    Encoded serial : 02 14 5D99F4811F76113A051C176E3267E84A60A873A5

http://forum.rutoken.ru/uploads/images/2020/04/1c768628cdde3b0830fcc59a59fbc421.png

Re: Настройка входа по токену в Raspbian.

aleks_rovinski, а есть сообщения pam_p11 в var/log/auth.log ?

(2020-04-17 09:06:34 отредактировано aleks_rovinski)

Re: Настройка входа по токену в Raspbian.

Да, есть.

Feb 13 16:16:38 raspberrypi systemd-logind[384]: New seat seat0.
Feb 13 16:16:38 raspberrypi systemd-logind[384]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Feb 13 16:16:38 raspberrypi systemd-logind[384]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Feb 13 16:17:00 raspberrypi login[557]: pam_unix(login:session): session opened for user pi by LOGIN(uid=0)
Feb 13 16:17:01 raspberrypi systemd-logind[384]: New session c1 of user pi.
Feb 13 16:17:01 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0)
Feb 13 16:17:01 raspberrypi CRON[663]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 13 16:17:02 raspberrypi CRON[663]: pam_unix(cron:session): session closed for user root
Feb 13 16:17:05 raspberrypi lightdm: pam_unix(lightdm-autologin:session): session opened for user pi by (uid=0)
Feb 13 16:17:05 raspberrypi systemd-logind[384]: New session c2 of user pi.
Apr 16 17:40:40 raspberrypi polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.18 [lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
Apr 16 17:40:41 raspberrypi sudo:       pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/piwiz
Apr 16 17:40:41 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 17:41:36 raspberrypi chpasswd[1141]: pam_unix(chpasswd:chauthtok): password changed for pi
Apr 16 17:41:44 raspberrypi PackageKit: uid 0 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Apr 16 17:41:44 raspberrypi PackageKit: uid 0 obtained auth for org.freedesktop.packagekit.system-sources-refresh
Apr 16 17:42:17 raspberrypi PackageKit: uid 0 is trying to obtain org.freedesktop.packagekit.system-update auth (only_trusted:1)
Apr 16 17:42:17 raspberrypi PackageKit: uid 0 obtained auth for org.freedesktop.packagekit.system-update
Apr 16 17:57:40 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 19:57:50 raspberrypi systemd-logind[361]: New seat seat0.
Apr 16 19:57:50 raspberrypi systemd-logind[361]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 16 19:57:50 raspberrypi systemd-logind[361]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 16 19:57:57 raspberrypi login[524]: pam_unix(login:session): session opened for user pi by LOGIN(uid=0)
Apr 16 19:57:57 raspberrypi systemd-logind[361]: New session c1 of user pi.
Apr 16 19:57:57 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0)
Apr 16 19:57:58 raspberrypi lightdm: pam_unix(lightdm-autologin:session): session opened for user pi by (uid=0)
Apr 16 19:57:58 raspberrypi systemd-logind[361]: New session c2 of user pi.
Apr 16 19:58:08 raspberrypi polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.18 [lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
Apr 16 20:09:31 raspberrypi sudo:       pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/arandr
Apr 16 20:09:31 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:12:13 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/apt-get install pcscd opensc openssl libpam-p11 libengine-pkcs11-openssl
Apr 16 20:12:13 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:12:44 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:13:09 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/nano /usr/share/pam-configs/p11
Apr 16 20:13:10 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:13:56 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:14:17 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/apt-get install pcscd opensc openssl libpam-p11 libengine-pkcs11-openssl
Apr 16 20:14:17 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:14:19 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:15:13 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/apt-get install libccid libpcsclite1 pcsc-tools
Apr 16 20:15:13 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:15:36 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:15:43 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/pam-auth-update
Apr 16 20:15:43 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:15:51 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:17:01 raspberrypi CRON[2483]: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
Apr 16 20:17:01 raspberrypi CRON[2483]: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:17:01 raspberrypi CRON[2483]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 16 20:17:02 raspberrypi CRON[2483]: pam_unix(cron:session): session closed for user root
Apr 16 20:21:45 raspberrypi sudo: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
Apr 16 20:21:45 raspberrypi sudo: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:21:45 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/openssl
Apr 16 20:21:45 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:24:04 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:30:54 raspberrypi sudo: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
Apr 16 20:30:54 raspberrypi sudo: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:30:54 raspberrypi sudo:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/sbin/pam-auth-update
Apr 16 20:30:54 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:31:03 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:31:48 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:45:13 raspberrypi systemd-logind[361]: System is rebooting.
Apr 16 20:45:13 raspberrypi polkitd(authority=local): Unregistered Authentication Agent for unix-session:c2 (system bus name :1.18, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8) (disconnected from bus)
Apr 16 20:45:24 raspberrypi systemd-logind[369]: New seat seat0.
Apr 16 20:45:24 raspberrypi systemd-logind[369]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 16 20:45:24 raspberrypi systemd-logind[369]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 16 20:45:31 raspberrypi login[513]: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:45:31 raspberrypi login[513]: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:45:31 raspberrypi login[513]: pam_unix(login:session): session opened for user pi by LOGIN(uid=0)
Apr 16 20:45:31 raspberrypi systemd-logind[369]: New session c1 of user pi.
Apr 16 20:45:31 raspberrypi systemd: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:45:31 raspberrypi systemd: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:45:31 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0)
Apr 16 20:45:39 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:45:39 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:45:39 raspberrypi lightdm: pam_unix(lightdm-autologin:session): session opened for user pi by (uid=0)
Apr 16 20:45:39 raspberrypi systemd-logind[369]: New session c2 of user pi.
Apr 16 20:45:46 raspberrypi polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.18 [lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
Apr 16 20:46:17 raspberrypi sudo: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
Apr 16 20:46:17 raspberrypi sudo: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:46:17 raspberrypi sudo:       pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/rc_gui
Apr 16 20:46:17 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 16 20:46:21 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Apr 16 20:46:24 raspberrypi systemd-logind[369]: System is rebooting.
Apr 16 20:46:35 raspberrypi systemd-logind[350]: New seat seat0.
Apr 16 20:46:35 raspberrypi systemd-logind[350]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 16 20:46:35 raspberrypi systemd-logind[350]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 16 20:46:46 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:46:46 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:46:46 raspberrypi lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Apr 16 20:46:46 raspberrypi systemd-logind[350]: New session c1 of user lightdm.
Apr 16 20:46:46 raspberrypi systemd: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:46:46 raspberrypi systemd: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:46:46 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user lightdm by (uid=0)
Apr 16 20:46:48 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:46:48 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:01 raspberrypi lightdm: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=pi
Apr 16 20:47:03 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:47:03 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:26 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:47:26 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:30 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:47:30 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:33 raspberrypi lightdm: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=pi
Apr 16 20:47:36 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:47:36 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:42 raspberrypi lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Apr 16 20:47:42 raspberrypi systemd-logind[350]: Removed session c1.
Apr 16 20:47:42 raspberrypi lightdm: pam_unix(lightdm:session): session opened for user pi by (uid=0)
Apr 16 20:47:42 raspberrypi systemd-logind[350]: New session c2 of user pi.
Apr 16 20:47:42 raspberrypi systemd: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 20:47:42 raspberrypi systemd: PAM adding faulty module: pam_p11_opensc.so
Apr 16 20:47:42 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0)
Apr 16 20:47:48 raspberrypi polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.23 [lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
Apr 16 21:17:01 raspberrypi CRON[936]: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога
Apr 16 21:17:01 raspberrypi CRON[936]: PAM adding faulty module: pam_p11_opensc.so
Apr 16 21:17:01 raspberrypi CRON[936]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 16 21:17:01 raspberrypi CRON[936]: pam_unix(cron:session): session closed for user root
Apr 16 22:09:16 raspberrypi systemd-logind[350]: System is powering down.
Apr 16 22:09:24 raspberrypi systemd-logind[345]: New seat seat0.
Apr 16 22:09:24 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 16 22:09:24 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 16 22:09:35 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 22:09:35 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 16 22:09:35 raspberrypi lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Apr 16 22:09:35 raspberrypi systemd-logind[345]: New session c1 of user lightdm.
Apr 16 22:09:35 raspberrypi systemd: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 22:09:35 raspberrypi systemd: PAM adding faulty module: pam_p11_opensc.so
Apr 16 22:09:35 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user lightdm by (uid=0)
Apr 16 22:09:38 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 16 22:09:38 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 17 08:26:55 raspberrypi lightdm: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=pi
Apr 17 08:26:58 raspberrypi lightdm: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 17 08:26:58 raspberrypi lightdm: PAM adding faulty module: pam_p11_opensc.so
Apr 17 08:27:06 raspberrypi lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Apr 17 08:27:06 raspberrypi systemd-logind[345]: Removed session c1.
Apr 17 08:27:06 raspberrypi lightdm: pam_unix(lightdm:session): session opened for user pi by (uid=0)
Apr 17 08:27:06 raspberrypi systemd-logind[345]: New session c2 of user pi.
Apr 17 08:27:06 raspberrypi systemd: PAM unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: cannot open shared object file: No such file or directory
Apr 17 08:27:06 raspberrypi systemd: PAM adding faulty module: pam_p11_opensc.so
Apr 17 08:27:06 raspberrypi systemd: pam_unix(systemd-user:session): session opened for user pi by (uid=0)
Apr 17 08:27:13 raspberrypi polkitd(authority=local): Registered Authentication Agent for unix-session:c2 (system bus name :1.23 [lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
Apr 17 09:01:07 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:01:08 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:01:09 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:01:09 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:01:16 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:01:16 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:01:17 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:01:17 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:01:48 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:01:48 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:02:46 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:02:46 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:03:18 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:03:18 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:05:05 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)
Apr 17 09:05:05 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:05:40 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event2 (CASUE USB KB System Control)
Apr 17 09:05:40 raspberrypi systemd-logind[345]: Watching system buttons on /dev/input/event0 (CASUE USB KB)

Re: Настройка входа по токену в Raspbian.

aleks_rovinski, в логе обозначена проблема:

unable to dlopen(pam_p11_opensc.so): /lib/security/pam_p11_opensc.so: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога