From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3D67C138CDE for ; Fri, 7 Feb 2014 22:32:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 835ECE0D92; Fri, 7 Feb 2014 22:32:32 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AEBC6E0D38 for ; Fri, 7 Feb 2014 22:32:30 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id p9so3122134lbv.20 for ; Fri, 07 Feb 2014 14:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LYPkt6h148hA6ZXgo5PVsQQRmW7lbsIyst1ZbK2Y1sI=; b=SIzKqg/S8Vh5wMUDt1lq5D3+wjdsbHUf4lEiS81zZL8xdovAi4S43y86LdJq8KpgaR 2ULp5Bc2OenmLRMDKfMJnb1NgyKdQFWQ4ahP9wqFtddgrLjVAZ0WzEElIR/JtWMIRHH4 Jara7FZIJnSmvALH4k5CPr+aWzukZCCYKV+UvH+zvsqvXo3esExltPHRbmgY5YYHrZL/ AtJ2GZnOL9JgIYs8aT7o68n9fqzmCdNMWeac9LzkU21/uWNqQ3sfM1C7zuKVjnwaEf5Y cop0jPQ6gVZ7DTMJqyHw164qTO2FxywTGC3eHmmuYgkjtetUI+YvOtGuZvlaBJSeCPHU vrPA== 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 X-Received: by 10.112.22.196 with SMTP id g4mr3057840lbf.47.1391812349012; Fri, 07 Feb 2014 14:32:29 -0800 (PST) Received: by 10.114.170.67 with HTTP; Fri, 7 Feb 2014 14:32:28 -0800 (PST) In-Reply-To: References: <20140204195807.GG6850@syscon7.ed.shawcable.net> <52F15ED4.7060409@sporkbox.us> <87siryldes.fsf@nyu.edu> <52F1777B.9080200@gmail.com> <52F43501.10906@gmail.com> Date: Fri, 7 Feb 2014 16:32:28 -0600 Message-ID: Subject: Re: [gentoo-user] Re: going from systemd to udev From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1c0c09bd-2f6e-4a30-a350-991fe0ef3d3c X-Archives-Hash: 69c06b1081c3ace99e1ee4bd55e71a08 On Fri, Feb 7, 2014 at 3:52 PM, walt wrote: > On 02/06/2014 05:38 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >> On Thu, Feb 6, 2014 at 7:21 PM, walt wrote: >>> On 02/05/2014 06:25 PM, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >>>> On Feb 5, 2014 6:23 PM, "walt" >>> > wrote: [ snip ] >>>>> I am seat0 >>> >>>> I'm more concerned about you being seat0, and you being asked for a >>>> password. In theory that's what logind solves, and in a much more >>>> cleaner, race-free and deterministic way than ConsoleKit. >>>> >>>> Do you have systemd with the policykit USE flag? And polkit with the >>>> systemd USE flag? (I suppose the later must have it). >>> >>> Yes systemd has polkit and polkit has systemd. >>>> >>>> If you do, can you please show us the output (make sure to do this >>>> inside your DE session) from: >>>> >>>> =E2=80=A2 loginctl seat-status >>>> >>>> For example, mine shows: >>> > > $loginctl seat-status seat0 > seat0 > Sessions: 1 > Devices: > =E2=94=9C=E2=94=80/sys/devices/LNXSYSTM:00/LNXPWRBN:00/= input/input1 > =E2=94=82 input:input1 "Power Button" > =E2=94=9C=E2=94=80/sys/devices/LNXSYSTM:00/device:00/PN= P0C0C:00/input/input0 > =E2=94=82 input:input0 "Power Button" > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:01.1/= sound/card0 > =E2=94=82 sound:card0 "Generic" > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:11.0/= ata3/host2/target2:0:0/2:0:0:0/block/sr0 > =E2=94=82 block:sr0 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:11.0/= ata3/host2/target2:0:0/2:0:0:0/scsi_generic/sg1 > =E2=94=82 scsi_generic:sg1 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:12.0/= usb4 > =E2=94=82 usb:usb4 > =E2=94=82 =E2=94=9C=E2=94=80/sys/devices/pci0000:00/000= 0:00:12.0/usb4/4-5/4-5:1.0/input/input5 > =E2=94=82 =E2=94=82 input:input5 "Lenovo Black Silk USB= Keyboard" > =E2=94=82 =E2=94=94=E2=94=80/sys/devices/pci0000:00/000= 0:00:12.0/usb4/4-5/4-5:1.1/input/input6 > =E2=94=82 input:input6 "Lenovo Black Silk USB Keyboar= d" > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:12.2/= usb1 > =E2=94=82 usb:usb1 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:13.0/= usb5 > =E2=94=82 usb:usb5 > =E2=94=82 =E2=94=94=E2=94=80/sys/devices/pci0000:00/000= 0:00:13.0/usb5/5-1/5-1:1.0/input/input4 > =E2=94=82 input:input4 "Logitech USB Trackball" > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:13.2/= usb2 > =E2=94=82 usb:usb2 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:14.2/= sound/card1 > =E2=94=82 sound:card1 "Generic_1" > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:14.5/= usb6 > =E2=94=82 usb:usb6 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:15.1/= 0000:04:00.0/usb8 > =E2=94=82 usb:usb8 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:15.1/= 0000:04:00.0/usb9 > =E2=94=82 usb:usb9 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:16.0/= usb7 > =E2=94=82 usb:usb7 > =E2=94=9C=E2=94=80/sys/devices/pci0000:00/0000:00:16.2/= usb3 > =E2=94=82 usb:usb3 > =E2=94=94=E2=94=80/sys/devices/virtual/misc/kvm > misc:kvm > > Does systemd pay attention to groups these days? > > $groups > disk lp wheel audio cdrom video games cdrw scanner lpadmin wireshark plug= dev vboxusers wa1ter kvm It does, but for desktops it's not the most important thing to assign resources permissions. Groups are static, and you want dynamic behavior to properly support multiuser systems. Your seat seems to be the owner of both the power buttons and USB devices, so you should not be asked for a password when powering down the machine (unless another user or root is logged in, for example by ssh), nor when using a USB stick. I repeat my question (if you already answered I apologize), do you have systemd emerged with the policykit USE flag? Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico