运行 KDE Frameworks 5、Plasma 5,用作sddm
显示管理器。
ConsoleKit
并且PAM-linux
都已安装。
登录后(使用登录sddm
屏幕),ck-list-sessions
返回FALSE
和is-local
。active
仅存在一场会议。
如果我注销,然后重新登录,这两个字段都是TRUE
,正如预期的那样。
sddm
不是支持 dm 的控制台套件。因此,我使用该pam_ck_connector.so
模块来附加 consolekit 会话。
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)
如何才能让我的系统第一次正常启动?