Pamusb-agent说Unlocked但屏幕仍然锁定

时间:2016-11-04 14:51:38

标签: linux ubuntu usb pam unlock

我会使用USB来锁定和解锁我的Ubuntu与pamusb,但问题是当我插入USB时它不会解锁屏幕,而在日志中它说它是解锁的:

pamusb-agent[6707]: pamusb-agent up and running.
pamusb-agent[6707]: Watching device "USBKEY" for user "ubuntuuser"
pamusb-agent[6707]: Device "USBKEY" has been removed, locking down user "ubuntuuser"...
pamusb-agent[6707]: Running "gnome-screensaver-command -l"
pamusb-agent[6707]: Locked.
pamusb-agent[6707]: Device "USBKEY" has been inserted. Performing verification...
pamusb-agent[6707]: Executing "/usr/bin/pamusb-check --quiet --config=/etc/pamusb.conf --service=pamusb-agent ubuntuuser"
pamusb-agent[6707]: Authentication succeeded. Unlocking user "ubuntuuser"...
pamusb-agent[6707]: Running "gnome-screensaver-command -d"
pamusb-agent[6707]: Unlocked.

锁定无缝工作,问题只出现在解锁阶段。

1 个答案:

答案 0 :(得分:0)

我也一直在努力解决这个问题,我找到了一种方法来获得预期的行为。

问题在于,由于Ubuntu 14.04,不再直接使用gnome-screensaver,-d选项不再按预期工作。

解决方法是在pamusb配置文件中使用另一个命令:loginctl unlock-session