1 |
On 6 June 2011 09:23, YoYo Siska <yoyo@××××××.sk> wrote: |
2 |
> On Sun, Jun 05, 2011 at 11:03:54PM +0100, Mick wrote: |
3 |
>> Both consolekit and polkit are running. What could be the problem? |
4 |
>> |
5 |
>> $ ps axf | grep polkit |
6 |
>> 8961 pts/1 SN+ 0:00 \_ grep |
7 |
>> --color=auto polkit |
8 |
>> 5678 ? Sl 0:00 /usr/libexec/polkitd |
9 |
>> |
10 |
>> $ ps axf | grep console |
11 |
>> 5594 ? Ssl 0:00 /usr/sbin/console-kit-daemon |
12 |
>> 9088 pts/1 SN+ 0:00 \_ grep |
13 |
>> --color=auto console |
14 |
>> |
15 |
>> |
16 |
>> I'm starting e17 WM running startx on this box, unlike another |
17 |
>> similarly configured machine where mounting devices works fine but I |
18 |
>> start that with /etc/init.d/xdm (kdm). |
19 |
> |
20 |
> |
21 |
> that console-kit-daemon is running doesn't mean your session is |
22 |
> 'registered' with it, you can check with ck-list-sessions |
23 |
> |
24 |
> yoyo@tabletka ~ $ ck-list-sessions |
25 |
> Session18: |
26 |
> unix-user = '1000' |
27 |
> realname = '(null)' |
28 |
> seat = 'Seat18' |
29 |
> session-type = '' |
30 |
> active = FALSE |
31 |
> x11-display = '' |
32 |
> x11-display-device = '' |
33 |
> display-device = '/dev/ssh' |
34 |
> remote-host-name = ... |
35 |
> is-local = FALSE |
36 |
> on-since = '2011-06-06T07:48:11.669544Z' |
37 |
> login-session-id = '' |
38 |
> Session1: |
39 |
> unix-user = '1000' |
40 |
> realname = '(null)' |
41 |
> seat = 'Seat1' |
42 |
> session-type = '' |
43 |
> active = TRUE |
44 |
> x11-display = ':0' |
45 |
> x11-display-device = '/dev/tty7' |
46 |
> display-device = '' |
47 |
> remote-host-name = '' |
48 |
> is-local = TRUE |
49 |
> on-since = '2011-06-01T17:09:37.282998Z' |
50 |
> login-session-id = '' |
51 |
> |
52 |
> the defaults for disk mounting should be that only active (local?) sessions |
53 |
> can do it... |
54 |
> |
55 |
> here it seems that a normaln console (text) / ssh seesions |
56 |
> are registered in ck through pam, but X session's have to do that |
57 |
> manulally, which i guess is done either in DM's xsession script or in |
58 |
> the startup script of the chosen DE ... |
59 |
> |
60 |
> if your session is not thare, then just add ck-launch-session to the |
61 |
> script you use to start the X session (~/.xinitrc in your case i guess, or |
62 |
> the script you specify to startx) |
63 |
|
64 |
Thanks yoyo, |
65 |
|
66 |
These are the sessions running: |
67 |
|
68 |
$ ck-list-sessions |
69 |
Session1: |
70 |
unix-user = '1000' |
71 |
realname = '(null)' |
72 |
seat = 'Seat1' |
73 |
session-type = '' |
74 |
active = FALSE |
75 |
x11-display = '' |
76 |
x11-display-device = '' |
77 |
display-device = '/dev/tty1' |
78 |
remote-host-name = '' |
79 |
is-local = TRUE |
80 |
on-since = '2011-06-06T18:06:09.557945Z' |
81 |
login-session-id = '' |
82 |
idle-since-hint = '2011-06-06T18:07:05.864234Z' |
83 |
Session2: |
84 |
unix-user = '1000' |
85 |
realname = '(null)' |
86 |
seat = 'Seat2' |
87 |
session-type = '' |
88 |
active = FALSE |
89 |
x11-display = ':0' |
90 |
x11-display-device = '/dev/tty7' |
91 |
display-device = '/dev/tty1' |
92 |
remote-host-name = '' |
93 |
is-local = FALSE |
94 |
on-since = '2011-06-06T18:06:43.077778Z' |
95 |
login-session-id = '' |
96 |
Session3: |
97 |
unix-user = '1000' |
98 |
realname = '(null)' |
99 |
seat = 'Seat3' |
100 |
session-type = '' |
101 |
active = FALSE |
102 |
x11-display = ':0' |
103 |
x11-display-device = '/dev/tty7' |
104 |
display-device = '/dev/tty1' |
105 |
remote-host-name = '' |
106 |
is-local = FALSE |
107 |
on-since = '2011-06-06T18:06:44.110526Z' |
108 |
login-session-id = '' |
109 |
|
110 |
Also, the WM is launched with ck-launch-session: |
111 |
|
112 |
5695 tty1 S 0:00 \_ -bash |
113 |
5730 tty1 S+ 0:00 \_ /bin/sh /usr/bin/startx |
114 |
5746 tty1 S+ 0:00 \_ xinit /etc/X11/xinit/xinitrc -- |
115 |
/etc/X11/xinit/xserverrc :0 -auth /home/michael/.serverauth.5730 |
116 |
5747 tty7 Ss+ 1:10 \_ /usr/bin/X -nolisten tcp :0 |
117 |
-auth /home/michael/.serverauth.5730 |
118 |
5753 tty1 S 0:00 \_ /usr/bin/ck-launch-session |
119 |
/usr/bin/dbus-launch --exit-with-session /usr/bin/gpg-agent --sh |
120 |
--write- |
121 |
5797 tty1 S 0:00 \_ ck-launch-session |
122 |
/usr/bin/enlightenment_start |
123 |
5802 ? Ss 0:00 \_ /usr/bin/gpg-agent |
124 |
--sh --write-env-file /home/michael/.gnupg/.gpg-agent-info --daemon -- |
125 |
/e |
126 |
5836 tty1 SLl 1:06 \_ /usr/bin/enlightenment |
127 |
|
128 |
However, from the ck-list-sessions above I can see that only the first |
129 |
session (the one I ran from the console) says is-local = TRUE, is this |
130 |
because this is the only session in which I had to enter a password to |
131 |
login? |
132 |
|
133 |
Does the above look OK? |
134 |
-- |
135 |
Regards, |
136 |
Mick |