![ConsoleKit 仅在第二次以上登录时报告活动/本地](https://linux22.com/image/1453365/ConsoleKit%20%E4%BB%85%E5%9C%A8%E7%AC%AC%E4%BA%8C%E6%AC%A1%E4%BB%A5%E4%B8%8A%E7%99%BB%E5%BD%95%E6%97%B6%E6%8A%A5%E5%91%8A%E6%B4%BB%E5%8A%A8%2F%E6%9C%AC%E5%9C%B0.png)
运行 KDE Frameworks 5、Plasma 5,用作sddm
显示管理器。
ConsoleKit
并且PAM-linux
都已安装。
登录后(使用sddm
登录屏幕),和均ck-list-sessions
返回。仅存在一个会话。FALSE
is-local
active
如果我注销,然后重新登录,这两个字段都是TRUE
,正如预期的那样。
sddm
不是支持 dm 的控制台套件。因此,我使用该pam_ck_connector.so
模块来附加控制台套件会话。
sddm 启动文件 ( /usr/share/sddm/scripts/Xsession
) 经过修改,使用以下行启动:
eval exec "ck-launch-session dbus-lauch --exit-with-session $session"
(我认为相关的) pam 文件如下:
/etc/pam.d/sddm
:
auth include system-auth
account include system-account
password include system-password
session include system-session
session optional pam_loginuid.so
session optional pam_ck_connector.so nox11
session optional pam_warn.so
/etc/pam.d/sddm-greeter
:
# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so
# Always let the greeter start without authentication
auth required pam_permit.so
# No action required for account management
account required pam_permit.so
# Can't change password
password required pam_deny.so
# Setup session
session required pam_unix.so
#session optional pam_loginuid.so
session optional pam_ck_connector.so
session optional pam_warn.so
pam_warn.so
已添加行以强制将日志记录到/var/log/auth.log
文件中。典型的登录信息如下所示:
<date/time> <pc-name> sddm-helper: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
<date/time> <pc-name> sddm-helper: pam_warn(sddm-greeter:session): function=[pam_sm_open_session] flags=0 service=[sddm-greeter] terminal=[:0] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
<date/time> <pc-name> sddm-helper: pam_unix(sddm:session): session opened for user <user-name> by (uid=0)
<date/time> <pc-name> sddm-helper: pam_ck_connector(sddm:session): nox11 mode, ignoring PAM_TTY :0
<date/time> <pc-name> sddm-helper: pam_warn(sddm:session): function= [pam_sm_open_session] flags=0 service= [sddm] terminal=[:0] user=[<user-name>] ruser=[<unknown>] rhost=[<unknown>]
<date/time> <pc-name> polkitd[810]: Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session4 (system bus name :1.38 [/opt/kde/lib64/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.ISO-8859-1)
我怎样才能使我的系统第一次就正常启动?