Проблема с consolekit (not athorized)

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

Аватара пользователя
tmf
Сообщения: 28
ОС: Gentoo amd64

Проблема с consolekit

Сообщение tmf »

После обновления consolekit перестали монтироваться флешки и перестал выключаться компьютер через dbus-send. В гугл говорит, что проблема в неправильной настройке /etc/X11/xinit/xinitrc.d/90-consolekit или неправильной компиляции consolekit.
Раньше иксы запускались при службой xdm, настройки хранились в файле ~/.xinitrc, сейчас создал файл /etc/X11/Sessions/openbox, что-бы скрипт 90-consolekit использовался (для входа использую slim).

ck-list-session

Код:

Session1: unix-user = '1000' realname = '(null)' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':0.0' x11-display-device = '/dev/tty7' display-device = '' remote-host-name = '' is-local = FALSE on-since = '2010-12-20T09:38:21.880847Z' login-session-id = '1


emerge -pv consolekit

Код:

Calculating dependencies... done! [ebuild R ] sys-auth/consolekit-0.4.2-r4 USE="pam policykit -debug -doc -test" 0 kB


cat /etc/X11/xinit/xinitrc.d/90-consolekit

Код:

# -*- sh -*- # Xsession.d script for ck-launch-session. # # # This file is sourced by Xsession(5), not executed. CK_LAUNCH_SESSION=/usr/bin/ck-launch-session is_on_console() { session=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \ --type=method_call --print-reply --reply-timeout=2000 \ /org/freedesktop/ConsoleKit/Manager \ org.freedesktop.ConsoleKit.Manager.GetCurrentSession \ | grep path | awk '{print $3}' | sed s/\"//g) x11_display=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \ --type=method_call --print-reply --reply-timeout=2000 \ $session org.freedesktop.ConsoleKit.Session.GetX11Display \ | grep string | awk '{print $2}' | sed s/\"//g) if [ -z "$x11_display" ] ; then return 0 else return 1 fi } # gdm already creates a CK session for us, so do not run the expensive D-Bus # calls if we have $GDMSESSION if [ -z "$GDMSESSION" ] && [ -x "$CK_LAUNCH_SESSION" ] && \ ( [ -z "$XDG_SESSION_COOKIE" ] || is_on_console ) ; then command="$CK_LAUNCH_SESSION $command" fi



P.S. Кое где нашел предложение смягчить политику безопасности Policykit, но не думаю, что это хорошая идея.
Packard Bell TS11HR CPU: Intel Core i5 RAM: 4GB GPU: nVIDIA GeForce 520M CUDA 1 GB
Спасибо сказали:
Аватара пользователя
tmf
Сообщения: 28
ОС: Gentoo amd64

Re: Проблема с consolekit

Сообщение tmf »

Проблема решилась. Надо было в файле '/etc/pam.d/system-login' удалить параметр "nox11" в строке pam_ck_connector.so.
Packard Bell TS11HR CPU: Intel Core i5 RAM: 4GB GPU: nVIDIA GeForce 520M CUDA 1 GB
Спасибо сказали: