From: walt <w41ter@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: automounting usb drives [SOLVED]
Date: Sun, 27 Feb 2011 11:18:25 -0800 [thread overview]
Message-ID: <ike824$g87$1@dough.gmane.org> (raw)
In-Reply-To: <20110227105422.789e5443@acme7.acmenet>
On 02/27/2011 04:54 AM, luis jure wrote:
> PENDING ISSUE: on thunar (and xfce, the other file manager i occasionally
> use) i can eject the drive but no umount it (i mean the ability to umount
> the file system but not delete the mount point under /media)
The auth/policy landscape has changed so quickly in the last few months
that I can't keep up, but I can tell you that you might want to play with
the command-line tools from consolekit and polkit when root-versus-user
problems occur.
For example, look through the output of pkaction --verbose for this:
org.freedesktop.udisks.drive-detach:
description: Detach a drive
message: Authentication is required to detach the drive
vendor: The udisks Project
vendor_url: http://udisks.freedesktop.org/
icon: drive-removable-media
implicit any: no
implicit inactive: no
implicit active: yes
Look at the last three lines for 'any' 'inactive' and 'active'. What do
they mean?
They refer to your 'console session', which you can list with ck-list-sessions:
Session1:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE <====== NOTE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-02-27T14:05:03.842279Z'
login-session-id = '1'
idle-since-hint = '2011-02-27T14:05:40.005781Z'
Session2:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE <======= NOTE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE <======= NOTE
on-since = '2011-02-27T14:05:16.819654Z'
login-session-id = '1'
Session1 is my original login on tty1, from which I typed 'startx'.
That session is not active because I'm writing this from inside the
gnome desktop, i.e. Session2, which *is* active (note the tty7).
The old defunct policykit also dictated whether a session had to be
'local' to do certain things, but that may have vanished, dunno.
The old policykit came with very simple and understandable tools to
set and edit policies, and the defunct gnome-policykit gave you a
simple gui frontend so you could tell WTF you were doing.
Alas, no more, and the new system is virtually opaque. Not well done,
IMHO.
My point is (almost forgot it) that automounting stopped working for
many months in gnome because consolekit claimed that my ck-session
was *not* active and *not* local even though obviously it was both.
Some recent update finally fixed that bug, thankfully, but I have
no idea which update.
next prev parent reply other threads:[~2011-02-27 19:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-26 1:31 [gentoo-user] automounting usb drives luis jure
2011-02-26 1:42 ` Dale
2011-02-26 11:43 ` luis jure
[not found] ` <ik9tsu$l8q$1@dough.gmane.org>
2011-02-26 11:40 ` [gentoo-user] " luis jure
2011-02-26 22:44 ` walt
2011-02-27 0:04 ` luis jure
2011-02-27 0:32 ` Paul Colquhoun
2011-02-27 2:10 ` luis jure
2011-02-27 2:51 ` Paul Colquhoun
2011-02-27 12:54 ` [gentoo-user] Re: automounting usb drives [SOLVED] luis jure
2011-02-27 19:18 ` walt [this message]
2011-02-26 12:42 ` [gentoo-user] automounting usb drives Marc Joliet
2011-02-26 13:30 ` luis jure
2011-02-26 14:46 ` luis jure
2011-02-26 14:53 ` [gentoo-user] " Nikos Chantziaras
2011-02-26 15:09 ` luis jure
2011-02-26 15:35 ` Nikos Chantziaras
2011-02-26 14:47 ` [gentoo-user] " Marc Joliet
2011-02-26 15:14 ` luis jure
2011-02-26 16:47 ` Marc Joliet
2011-02-26 15:17 ` Christoph Brendes
2011-02-26 15:27 ` luis jure
2011-02-26 15:41 ` Christoph Brendes
2011-02-27 3:20 ` Duong "Yang" Ha Nguyen
2011-02-27 11:13 ` luis jure
2011-02-27 12:39 ` Stéphane Guedon
2011-02-27 16:58 ` Stéphane Guedon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ike824$g87$1@dough.gmane.org' \
--to=w41ter@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox