You are not logged in.

#1 2012-02-25 22:27:25

iosonofabio
Member
From: Australia
Registered: 2008-10-09
Posts: 105

[SOLVED] ck-list-sessions: active = FALSE, is-local = FALSE

Ok guys, I have tried all posted solutions and more, but I still do not get a properly working consolekit. I am desperate enough to ask for advice step by step.

Problem
The output of ck-lst-session is

Session12:
        unix-user = '1000'
        realname = 'Joe The Plumber'
        seat = 'Seat13'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty8'
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = FALSE
        on-since = '2012-02-25T22:15:37.986683Z'
        login-session-id = '4294967295'

and, for various reasons, I try to get is-local AND active to TRUE. How can I get it? Thanks in advance!

Config files
.xinitrc

#!/bin/sh

# Prepare GnuPG
envfile="${HOME}/.gnupg/gpg-agent.env"
if test -f "$envfile" && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then
    eval "$(cat "$envfile")"
else
    eval "$(gpg-agent --daemon --write-env-file "$envfile")"
fi
export GPG_AGENT_INFO  # the env file does not contain the export statement

# Export Environment variables
# IBUS input engine (chinese)
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
# OpenOffice support
export OOO_FORCE_DESKTOP=gnome
# Text editor:
export VISUAL=/usr/bin/vim
# Sage browser
export SAGE_BROWSER='firefox'


# Executed by startx (run your window manager from here)
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

/etc/inittab (vanilla, as I can remember)

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)	Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

# End of file

Packages installed

local/consolekit 0.4.5-2
local/polkit 0.104-1
local/polkit-gnome 0.105-1
local/dbus 1.4.16-1
local/dbus-core 1.4.16-1
local/i3-wm 4.1.2-4 (i3)

Last edited by iosonofabio (2012-02-26 10:15:44)

Offline

#2 2012-02-26 10:15:33

iosonofabio
Member
From: Australia
Registered: 2008-10-09
Posts: 105

Re: [SOLVED] ck-list-sessions: active = FALSE, is-local = FALSE

Ok, solved by myself in the end. Just for reference, here the explanation.

It was a mess with pam services. I had a "session sufficient" module in login BEFORE "-session optional pam_ck_connector", and this stopped the pam stack.

Offline

#3 2012-05-09 16:44:57

a1ex
Member
From: Germany
Registered: 2007-02-16
Posts: 92

Re: [SOLVED] ck-list-sessions: active = FALSE, is-local = FALSE

Similar situation without a session sufficient module. I try to start through slim.
Could you post your '/etc/pam.d/login'?

/e nevermind. sorry for digging this up.
Actually slim seems ck-launch-session aware as of late.
Another point of failure for me is udisks2 now.

Last edited by a1ex (2012-05-09 17:28:27)

Offline

#4 2012-05-09 17:28:36

iosonofabio
Member
From: Australia
Registered: 2008-10-09
Posts: 105

Re: [SOLVED] ck-list-sessions: active = FALSE, is-local = FALSE

You have played Edna? Great, I like it! Anyway, here you go. If anything is not clear, just ask.

[edit: you seem to have solved by now]

#%PAM-1.0
#
auth            required        pam_securetty.so
auth            requisite       pam_nologin.so
auth            required        pam_unix.so nullok
auth            required        pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth           required        pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account         required        pam_access.so
account         required        pam_time.so
account         required        pam_unix.so
#password       required        pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password       required        pam_unix.so sha512 shadow use_authtok
session         required        pam_unix.so
session         required        pam_env.so
session         required        pam_motd.so
session         required        pam_limits.so
#session                optional        pam_mail.so standard
session         optional        pam_lastlog.so
session         optional        pam_loginuid.so
-session        optional        pam_ck_connector.so nox11
-session        optional        pam_systemd.so

Last edited by iosonofabio (2012-05-09 17:29:41)

Offline

Board footer

Powered by FluxBB