我不断收到以下消息/var/log/messages
:
4/7/2016, 11:03:49 AM fprintd[3277] Launching FprintObject
4/7/2016, 11:03:49 AM fprintd[3277] ** Message: D-Bus service launched with name: net.reactivated.Fprint
4/7/2016, 11:03:49 AM fprintd[3277] ** Message: entering main loop
4/7/2016, 11:04:20 AM fprintd[3277] ** Message: No devices in use, exit
在以下系统上:
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
$ uname -a
Linux X 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$
即使服务被禁用:
$ systemctl status fprintd
● fprintd.service - Fingerprint Authentication Daemon
Loaded: loaded (/usr/lib/systemd/system/fprintd.service; static; vendor preset: disabled)
Active: inactive (dead)
Docs: man:fprintd(1)
Apr 07 11:05:27 X fprintd[4871]: Launching FprintObject
Apr 07 11:05:27 X fprintd[4871]: ** Message: D-Bus service launched with name: net.reactivated.Fprint
Apr 07 11:05:27 X fprintd[4871]: ** Message: entering main loop
Apr 07 11:05:58 X fprintd[4871]: ** Message: No devices in use, exit
Apr 07 11:18:22 X systemd[1]: Starting Fingerprint Authentication Daemon...
Apr 07 11:18:22 X systemd[1]: Started Fingerprint Authentication Daemon.
Apr 07 11:18:22 X fprintd[7010]: Launching FprintObject
Apr 07 11:18:22 X fprintd[7010]: ** Message: D-Bus service launched with name: net.reactivated.Fprint
Apr 07 11:18:22 X fprintd[7010]: ** Message: entering main loop
Apr 07 11:18:52 X fprintd[7010]: ** Message: No devices in use, exit
$
我如何真正禁用,所以这根本不会出现在我的日志中?
$ systemctl status dbus
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
Active: active (running) since Thu 2016-04-07 11:03:16 EDT; 57min ago
Main PID: 904 (dbus-daemon)
CGroup: /system.slice/dbus.service
└─904 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
Apr 07 11:14:35 X dbus[904]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 07 11:14:35 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 07 11:16:25 X dbus-daemon[904]: dbus[904]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Apr 07 11:16:25 X dbus[904]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Apr 07 11:16:25 X dbus[904]: [system] Successfully activated service 'org.freedesktop.problems'
Apr 07 11:16:25 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'org.freedesktop.problems'
Apr 07 11:18:22 X dbus-daemon[904]: dbus[904]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Apr 07 11:18:22 X dbus[904]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Apr 07 11:18:22 X dbus[904]: [system] Successfully activated service 'net.reactivated.Fprint'
Apr 07 11:18:22 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'net.reactivated.Fprint'
$
我在 CentOS 板上问了同样的问题(fprintd: ** Message: No devices in use, exit - CentOS),但没有得到答案,但无论如何..
该服务不是“禁用”的,它是“静态的”。这意味着它通常不能直接启动,而是由 systemd 响应某些事件而启动。
由于该服务旨在驱动指纹读取器,因此可以肯定它会在控制台登录尝试期间被触发。
如果您没有指纹读取器并且不打算拥有指纹读取器,则可以屏蔽该服务,以便它永远无法启动,即使它被卸载并重新安装,即使依赖项要求它:
这些消息(相对)无害并且可以被忽略,前提是您有额外的几 KB 磁盘空间来存储它们。如果您将来确实打算使用指纹读取器,您可能希望保持此服务不变,或者至少仔细记录您已屏蔽该服务,以便将来您仍然了解它。
我们通过卸载包 fprintd-pam 和 fprintd 解决了这个问题,同时注释了文件 /etc/pam.d/fingerprint-auth 和 /etc/pam.d/gdm-fingerprint 上引用指纹的行。