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 ms9.migadu.com with LMTPS id UBAsD9BebWTuKwEASxT56A (envelope-from ) for ; Wed, 24 May 2023 02:48:16 +0200 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 2PhNDtBebWTKNwEAG6o9tA (envelope-from ) for ; Wed, 24 May 2023 02:48:16 +0200 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 D37433FFCC for ; Wed, 24 May 2023 02:48:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1cfc-0004ug-P0; Tue, 23 May 2023 20:48:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1cfZ-0004u6-Vi for bug-guix@gnu.org; Tue, 23 May 2023 20:48:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1cfZ-0005Pc-NV for bug-guix@gnu.org; Tue, 23 May 2023 20:48:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1cfZ-0000Ks-JH for bug-guix@gnu.org; Tue, 23 May 2023 20:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63198: cups-service-type uses PAM-enabled 'cups' by default which prevents authentication Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 24 May 2023 00:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63198 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: muradm Cc: Ricardo Wurmus , 63198-done@debbugs.gnu.org Received: via spool by 63198-done@debbugs.gnu.org id=D63198.16848892221072 (code D ref 63198); Wed, 24 May 2023 00:48:01 +0000 Received: (at 63198-done) by debbugs.gnu.org; 24 May 2023 00:47:02 +0000 Received: from localhost ([127.0.0.1]:40672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1cec-0000HE-HS for submit@debbugs.gnu.org; Tue, 23 May 2023 20:47:02 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:49623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1cea-0000Gj-Am for 63198-done@debbugs.gnu.org; Tue, 23 May 2023 20:47:02 -0400 Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-75afed17e0cso49498385a.3 for <63198-done@debbugs.gnu.org>; Tue, 23 May 2023 17:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684889214; x=1687481214; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8QCibPu9c1cvpRxNTxc/XiDlEUHiPX+Mv8IKhBqfs4s=; b=Atn7RPr59NS0JZK4PxAvRjUh6xDiBKxVaPcbTTCs3gM4aBYUYXoD4Z1lcuqdFzNodv Nl1OYum6jXHBQKz3XaI+KZGqSAtKq54J+vVhFtxEu6PkPitSbc8TLVNSJ21TcoLGNf1M 9hTCDicZXrEJPhTnexXHF3ALgUsZZOFFUZCAFvmp4mK3A37FkdVJct45hzcZ8TVdOmwT GH7RiQm/7WKQzy6X6gQ/1AHXGWYOR5h0M0mF6i/sZeczJCOJD3JHV9I2Xg/aBUTEWBr6 xbzRGmCbr4gViUbER93e7HTPxC1y8JWw6ZfLTp4ciLs/t2HBYLTa8+tJwymONZV9zeFT WLfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684889214; x=1687481214; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8QCibPu9c1cvpRxNTxc/XiDlEUHiPX+Mv8IKhBqfs4s=; b=jmCuMYaIHoYR6kYVuHlyyoeG33Hi6iqckKUcny1R6u0fI8XYpNFrqcMcMUG/e245g7 uqhu7bEdq4GgcrCoCUdY5lrk/GUpshq7JRNSOmQZFQh0Y2mcnPE6sYcWp48COphToQfR uuUB3rb8eq1By/yKj0ncJF7Y7y+KrBKHfeH1DV6SPg8UXdQIQvrjpX/WFWvbVbNAxRGw mkGUFAnfIuvcMM87JgYoExVHL9EJnnIZMjjg65ihchdzzKVJrDx4Fl5ewaAqqCJTwGF0 nTbeCv/yior048yqaxKrsypxC2bz0Bs+xKYAb2F7lIgz/q3QCPbFFP6tlt0nGWCVaYvv L1sw== X-Gm-Message-State: AC+VfDwVvdRrbPIjlsCwvBAcKPrhYf7+0cebtcwM2TD8O4UjCF+F232j FSJCgxml/UXmOYqgvtntEdRXQkbL+tZH/A== X-Google-Smtp-Source: ACHHUZ7rOyB+kNY8VCFb0vXwiaLOi2b8wmKowuDjkv2spA97Sgp/yfXRey5GX4jj9Ow72slO9ukHug== X-Received: by 2002:a05:6214:19c8:b0:625:aa48:df01 with SMTP id j8-20020a05621419c800b00625aa48df01mr208361qvc.65.1684889214597; Tue, 23 May 2023 17:46:54 -0700 (PDT) Received: from hurd (dsl-10-133-118.b2b2c.ca. [72.10.133.118]) by smtp.gmail.com with ESMTPSA id ec13-20020ad44e6d000000b00605f796d30esm3203140qvb.51.2023.05.23.17.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 17:46:54 -0700 (PDT) From: Maxim Cournoyer References: <87wn1s695u.fsf@gmail.com> <0c6858607cfd59a8da92f0a0780d8b45dc4b3afd.1684003079.git.mail@muradm.net> <877ct9vcrg.fsf_-_@gmail.com> <87edngon5j.fsf@muradm.net> Date: Tue, 23 May 2023 20:46:52 -0400 In-Reply-To: <87edngon5j.fsf@muradm.net> (muradm's message of "Tue, 16 May 2023 08:17:56 +0300") Message-ID: <87353mimir.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684889296; a=rsa-sha256; cv=none; b=fuctpum86MAqHoPujV073iogCn9shC+SmRElnuITm6+Z6Z3A6DQ0+w18zs6M6jHPmS+Mhm 6Gab3g0w6PbPiAf4q4JewXBC0PAV6ipgNT+/yn57cndlKiWbXB+fNPNC+rgcaOEe2ZFBGx 3xEV1EBkq0r4/zMOPKNLs2FgGAbyPw1sVSln6E8PH7I1emzojqTapGBjBDMgALvVtc4Wp5 yYJYGRc4dLjBHFmfmoNq+WjsaqLqw9F5BiwzaiBgVGNfjGWqdcV/ID61DiodIrkWWPHlOj 9T/QWMbVWOON84vM2xeYw87uz2FVULbxnAKG207NCqBVNDAqd1+UuEiUvFDvLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Atn7RPr5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684889296; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8QCibPu9c1cvpRxNTxc/XiDlEUHiPX+Mv8IKhBqfs4s=; b=BUUbjAvikzLjWlJk2IdWRY0ZvoHgiAtILbXOs40xaOn9UJfAjp7IxuFx0Snuhjaw3ZP0FQ 4u4fP3/jpz6/W7FuPTbjWC+GyKCNE+oALlFwYfa9G2+liBCnDp+GrvyS7xxjykiPqATq28 YAdr/V32m0reGCnLtcK1Jv4YFM464TssExqUbnvL7iqtR+wH8PpcM6T5V7NwYSrXec2x7X 8JmBHENpzzpj+thUA6uc+K+rc8Ux6dlcY4pE5tW2P5lln645xLb1W17Nr+zyQpUNpBFmOr NRSdtC8cwMGq2TLnwf1EHTXqVPARkMms8N36tlJzX5kAEHUniwSomRKh3OuDLA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Atn7RPr5; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.83 X-Spam-Score: 5.83 X-Migadu-Queue-Id: D37433FFCC X-TUID: SQaeEw41I84s Hi muradm, muradm writes: [...] >> Could you look into adding "regular" login PAM support instead of a >> bypass disabled by default? The user should still be prompted for >> its >> password, and it should go through the PAM auth module. >> >> I'm not very PAM-aware, but I believe there are examples spread in >> the >> code base. > > This patch provides necessary configuration for proper PAM support. > I decided to take screen-locker-service-type's configuration as > basis, since it is was most simpliest and adequate enough for this > case. > This patch does not disables, baypasses or cheats PAM in any way. > User may navigate to CUPS portal. In the event of administrative > actions taken by user, CUPS portal asks user to authenticate. > With this configuration, it will attempt to authenticate as local > system user. In the event of proper system user/password supplied > and positively authenticated against PAM using "cups" service name, > user allowed to take administrative action. In the event of invalid > system user/password supplied, CUPS portal will keep looping > begging for password (just as in your original case). If user decides > to Cancel the authentication dialog, CUPS portal is navigated to > Unauthorized access informing page. > > Why would I submit something that it is not working? I didn't mean to imply that it didn't work; I just thought that it was somehow bypassing PAM (and the original problem it caused in the first place). As I wrote earlier, I know next to nothing about PAM, and misread your patch. I've now installed the change. Thanks for the fix, and thanks to Ricardo for the reminder. -- Maxim