From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id xetPI3UP0mE1KgEAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 21:47:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WOc8GnUP0mGsEQEAG6o9tA (envelope-from ) for ; Sun, 02 Jan 2022 21:47:49 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D929EF261 for ; Sun, 2 Jan 2022 21:47:48 +0100 (CET) Received: from localhost ([::1]:52134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n47lb-0007Ox-A2 for larch@yhetil.org; Sun, 02 Jan 2022 15:47:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n47l7-0007Nj-ER for help-guix@gnu.org; Sun, 02 Jan 2022 15:47:17 -0500 Received: from mout02.posteo.de ([185.67.36.66]:36051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n47l4-00018R-Vx for help-guix@gnu.org; Sun, 02 Jan 2022 15:47:16 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E5D16240104 for ; Sun, 2 Jan 2022 21:47:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1641156430; bh=qwzSnQ1PHGKnqMVx64HHZ4kpMjPIXSOoTOSrTKPQ6EA=; h=From:To:Subject:Date:From; b=dJ4lcrPFoooUbKUAw9LOp5XHSPZVAqXqc/M1gcvd0UYE/YsCl/cnzo9oO/zdgwl22 mjqBNF4dnGZjJqnNANhMMtcsUbyW1ZQmvKUycgHmuO30HkAu7CR/x/9xat+mmJQdOL Pt1hV0Cx/nMwp38HwgAbaDqeGlAKrip9t7ra7PvR54d0LDIIiQVqduZcO3KeM9gyhB T8QOeMMqkPuNV+xW8jzuCKIbD0IhJJejeP9O2K3oI5zwbHDQ20JWsxV3VzifWWkGjM eTBbyXiKnRwsnZDHRXYQW5pOxqbAVvYjQUa3hxxzQ269xQ5arJuFC9fa3Z459inLuK RFNKSw6/IH25w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JRrXZ1q7tz9rxG; Sun, 2 Jan 2022 21:47:10 +0100 (CET) References: <0f941db1-51a5-b579-7f2c-7333057cb402@teulu.org> <6404264d-e6c9-831c-9e5f-8327488201eb@teulu.org> <20211229015029.7f75bb7b@riseup.net> <20211230200023.7aec38ae@riseup.net> <878rw0fwgr.fsf@jpoiret.xyz> <875yr2flba.fsf@jpoiret.xyz> From: Mekeor Melire To: help-guix@gnu.org Subject: Re: bug#52904: nmtui - user authorisation Date: Sun, 02 Jan 2022 20:42:22 +0000 In-reply-to: <875yr2flba.fsf@jpoiret.xyz> Message-ID: <875yr1dfx6.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641156469; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=C2ydeDtJbfJH5XFFW6y2Pc9HGjvXVpnFV/jfphWBZNs=; b=ViLQz1VMK3WCdcpJgJ7S0Ddlrq5JMEc3dmt5oje9ADXNG5+N1fq98rrkrVIojqPmjoI/xm PeDlTbO4ht0m8Yi6sSU564+HcHqi5a5NC+0eqGSB0BadeJekqU9KilYY6jOTXd1iiY+DTy iNQKGECsIPTP4lEzW29uA2RD8Gu4A/hR60UYH5phVLEPE33mRa/nWueyYQ8j1EkJiXGePd pv8MxjMSJNjNw8IVWcGPlsYfNl+IuuliSpgedtGDBPXYTFjbgNYXUObC+DNLX0xGP4qabO wQ31GCpx5yC+1keIievsuE+K10UH9vogevhWk+tcwQ2FDCf6O5e8OclRi323ug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641156469; a=rsa-sha256; cv=none; b=t2hxi9cWJhoxpTQY5mqO4BT6YZTMW8s7425AD8TXPkaHLlhMbL9AshoC1dva5s9LenjX4k t6bAcuT+E834TNpb8dOOn99DkaVbAwq0h61kFO4GAmAiKeHBG0H5q+JHDQn28/0DfGAHLA B2QfeunZB6NwB640ri67F5V1e4gfzOUq4lUPsdezZ2ZOLPk/bVT7Ap0KawuA3uXMGRehm4 RKAr7hRnMz+LowuOw+yjN0mLCVOSDozFO1zDSBolENJliJAfg+lsFYVO68HxSsOZkELvsx hvGn/SFHzlQOv5eQm6CbcdZs2MsZ2zMC5U6g7EgYHgk8YFuNWR+VzilexchhFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=dJ4lcrPF; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=dJ4lcrPF; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D929EF261 X-Spam-Score: -6.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: t7vKoKSGiQMU 2022-01-02 / 12:07 / dev@jpoiret.xyz: > Hello again, >> Good morning Josselin, and Happy New Year! >> >> Many thanks for taking the time to explain this in detail for us. If I >> have properly understood your explanation, it suggests I am running >> network-manager from outside of the dbus session. If I look at the n>> processes running on my system at this moment, the dbus-launch process >> has an id of 881, while the network-manager session has an id of 463, >> suggesting that it was started before dbus. My system configuration is >> relatively standard (if there is such a thing) - I don't do anything to >> change how dbus or network manager are launched, but rely on the >> defaults provided by the the desktop-service. Is there any way to ensure >> network-manager is launched inside the dbus session? I am using slim >> rather than gdm, and as a desktop manager I am using dwm (with some >> local changes). >> >> Regarding the wheel group - my user is in this group, but I don't get >> any request for a password - nmtui simply informs me that I don't have >> the necessary authorisation. > > Some context is missing from the forwarded mail, so I have no idea what > script you're trying to run or how, unfortunately. Here is some more > information though: > * there are generally two (or more) dbus daemons running. One for the > system bus, launched through Shepherd (named `dbus-system`), and one for > each session, for the session bus, started either manually or often > through your DM (ie. GDM). elogind and NetworkManager both run on the > system bus. > * for Polkit to successfully reauthenticate you, it needs to have a > registered agent running. A Polkit agent is a program that registers > with Polkit via dbus, is associated with a session, and is used by > Polkit to prompt the user for a password. There are many, see [1]. You > can test whether the agent is properly set-up by simply running `pkexec > echo "Hello"`, pkexec being roughly the equivalent of `sudo`, but using > Polkit for permission checking. > > [1] https://wiki.archlinux.org/title/Polkit#Authentication_agents On #guix:libera.chat, I reported Josselin that I had a similar issue as Paul reported. Namely, I could not use e.g. `nmcli device wifi connect foo password bar` to connect to a wifi. Instead I got a permission error. Josselin suggested me to install polkit-gnome and to keep ~/.guix-profile/libexec/polkit-gnome-authentication-agent-1 running afterwards. This worked for me. (My user is member of the netdev group.)