ConsoleKit 仅在第二次以上登录时报告活动/本地

ConsoleKit 仅在第二次以上登录时报告活动/本地

运行 KDE Frameworks 5、Plasma 5,用作sddm显示管理器。

ConsoleKit并且PAM-linux都已安装。

登录后(使用登录sddm屏幕),ck-list-sessions返回FALSEis-localactive仅存在一场会议。

如果我注销,然后重新登录,这两个字段都是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)

如何才能让我的系统第一次正常启动?

相关内容