Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Xfce: shutdown and reboot normal users

83 views
Skip to first unread message

luis jure

unread,
Feb 27, 2011, 9:00:02 AM2/27/11
to

i'm posting this to the list in case it's of some use to somebody.

trying to get automounting of usb drives working on xfce, as discussed on
a recent thread, i recompiled xfce4-session with policykit (polkit) and
consolekit. eventually this got me automounting working, but in the
process i lost the ability to shutdown or reboot the system from the exit
dialog in xfce. it seemed obvious that it was a permissions issue
involving polkit. searching the web i found instructions [*] that worked
for me: create the file /etc/polkit-1/localauthority/50-local.d/power.pkla
(the name isn't relevant as long as it's under that directory and has the
pkla extension) with this code:

[Local restart]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local restart - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes

you can change the Identity=unix-group:wheel line with a different group
or a unix-user. since i'm the only user here, this isn't relevant for me.

i hope this might be of some interest.

[*] here: https://wiki.archlinux.org/index.php/Xfce

walt

unread,
Feb 27, 2011, 2:30:03 PM2/27/11
to
On 02/27/2011 05:55 AM, luis jure wrote:
>
>
> i'm posting this to the list in case it's of some use to somebody.
>
> trying to get automounting of usb drives working on xfce, as discussed on
> a recent thread...

Heh. I just replied to that other thread before reading this :)
Sounds like you're way ahead of me now, and thanks for the info.

luis jure

unread,
Feb 27, 2011, 5:30:03 PM2/27/11
to
on 2011-02-27 at 11:25 walt wrote:

>Heh. I just replied to that other thread before reading this :)
>Sounds like you're way ahead of me now, and thanks for the info.

hmmm... i wouldn't say so. your other mail actually had lots of
information that was completely new for me. "pkaction --verbose" for
example was a complete revelation, as it was all the stuff related to the
console sessions.

BTW, ck-list-sessions only lists one session here:

lj@acme7 ~ $ ck-list-sessions
Session7:
unix-user = '1000'
realname = '(null)'
seat = 'Seat8'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2011-02-27T15:20:31.404040Z'
login-session-id = ''

i'm still not sure what all these means... and if i should care about it.

best,

lj

0 new messages