From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PtmAL-0005w5-1y for garchives@archives.gentoo.org; Sun, 27 Feb 2011 19:20:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D273F1C011; Sun, 27 Feb 2011 19:18:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 87BCC1C011 for ; Sun, 27 Feb 2011 19:18:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id EF2E61BC01C for ; Sun, 27 Feb 2011 19:18:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -2.871 X-Spam-Level: X-Spam-Status: No, score=-2.871 required=5.5 tests=[AWL=-0.272, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g4XVfKDbR2ok for ; Sun, 27 Feb 2011 19:18:47 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 3D6B41B40B5 for ; Sun, 27 Feb 2011 19:18:45 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ptm8f-0001Va-4k for gentoo-user@gentoo.org; Sun, 27 Feb 2011 20:18:41 +0100 Received: from adsl-69-234-196-210.dsl.irvnca.pacbell.net ([69.234.196.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 20:18:41 +0100 Received: from w41ter by adsl-69-234-196-210.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Feb 2011 20:18:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] Re: automounting usb drives [SOLVED] Date: Sun, 27 Feb 2011 11:18:25 -0800 Message-ID: References: <20110225233107.04405a5b@acme7.acmenet> <201102271132.52892.paulcol@andor.dropbear.id.au> <20110227001037.04a0339c@acme7.acmenet> <201102271351.19545.paulcol@andor.dropbear.id.au> <20110227105422.789e5443@acme7.acmenet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-196-210.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b10pre) Gecko/20110121 Thunderbird/3.3a2 In-Reply-To: <20110227105422.789e5443@acme7.acmenet> X-Archives-Salt: X-Archives-Hash: f59dcc1ebee1b2ab89bad2ac1958f45e 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.