From owner-freebsd-gnome@FreeBSD.ORG Sat Jul 4 21:20:31 2009 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B5381065673 for ; Sat, 4 Jul 2009 21:20:31 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id 09FBD8FC0A for ; Sat, 4 Jul 2009 21:20:30 +0000 (UTC) (envelope-from gustau.perez@gmail.com) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id n64JAfnO005152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 4 Jul 2009 21:10:41 +0200 Received: from [192.168.100.184] (184.Red-83-43-142.dynamicIP.rima-tde.net [83.43.142.184]) (authenticated bits=0) by ackerman2.upc.es (8.13.8/8.13.8) with ESMTP id n64JAbxR029086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Jul 2009 21:10:40 +0200 Message-ID: <4A4FA8F0.6040708@gmail.com> Date: Sat, 04 Jul 2009 21:09:36 +0200 From: Gustau Perez User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Joe Marcus Clarke References: <4A4B0E46.8040600@entel.upc.edu> <1246734187.1299.2.camel@shumai.marcuscom.com> In-Reply-To: <1246734187.1299.2.camel@shumai.marcuscom.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Sat, 04 Jul 2009 21:10:41 +0200 (CEST) Cc: freebsd-gnome@freebsd.org Subject: Re: Problem with auth in policykit-gnome X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jul 2009 21:20:31 -0000 Joe Marcus Clarke wrote: > On Wed, 2009-07-01 at 09:20 +0200, Gustau Pérez wrote: > >> Hi, >> >> I'm having troubles using policykit-gnome. My system is a clean 7.2 >> STABLE, all ports removed and recompiled clean. If I log as >> a normal user if I try to change some actions doesn't bring me the >> auth dialog. If I log as root, I can change everything. If I >> remember well I thing the same happened with CURRENT, but can't >> confirm it right now. >> >> I checked 'policykit -> Modify defaults for implicit >> authorization', which gave me 'Admin Authentication' (the default value). >> >> My ${LOCALBASE}/etc/PolicyKit/PolicyKit.conf allows root to do >> anything and defines an admin group. If I add a user >> and allow him to do anything, then it works. So that made me think >> policyit-gnome was to blame. >> >> Anyone can confirm this behaviour ? In case someone does, I have a >> patch for the port (based on a patch in ubuntu) which seems >> to fix the problem I can send a pr with the patch If anyone confirms >> this. >> > > Are you sure /proc is mounted? This is required for PK to work > properly. > Yes it is. It is mounted via fstab : proc /proc procfs rw 0 0 To confirm my session is detected, ck-list-sessions shows : Session4: unix-user = '1002' realname = 'Gustau Perez' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/ttyv8' display-device = ' ? ' remote-host-name = '' is-local = TRUE on-since = '2009-07-04T17:41:14.065038Z' login-session-id = '' Editing /usr/local/share/PolicyKit.conf by hand allows normal users to change settings. I sent a pr/136328 hours ago, it has a patch which fixes the problem for me. Reading fedora and ubuntu forums, I saw the same problem, with a solution to solve it. I attached a patch to the pr with that solution. Regards, Gus