From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IHmzHDJyxGYbGgEAe85BDQ:P1 (envelope-from ) for ; Tue, 20 Aug 2024 10:38:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IHmzHDJyxGYbGgEAe85BDQ (envelope-from ) for ; Tue, 20 Aug 2024 12:38:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=N1aGMxn5; 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"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724150322; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zCsfDwErdJy3C88B/sy7UFdFdl5LD7Kc7zgSQJVsD3U=; b=mE5KWjgLuJIZpRA1QzMnMgyfLt5nj8yYFDhvDPd3vL8qiZJYV69NLObiBgt4SFF2ZfCNZV 4EQKi5UjMvm8vzWzrvcr3Gkx38ITVfmEt6pfhp9msZNqJhb65oiPZ8NCUilwCN9mtLYrnC fDBZaPxG3eK6XXQYKx+I5zNSsZiUDHwlYg7I8SvkZnFMSu9koC+n2WDVjz7Nk1TOCIyDJP HAU3bHJj06KwfXAH8O8iMESriqaPkUskMz/jzNOohzbhLWHaNzgMp8cnDSLuWfksqnATH+ KlKpPkijhqMDy3LAdWGMPcy61rvKJQEClrjpmO4JJQL6bHFdzvkCTnlo6qoVwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=N1aGMxn5; 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"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724150322; a=rsa-sha256; cv=none; b=pLuadVscHITmgY8T2ppsLGSg7agECA66leVtUtR/pdG2fxiZQ1xcVUFA/HyNS/QlHH/xNS aRF6xQrnsfT/EllS04jv2btpSl9V+9rJMqh8Pjt16Tyt3xYMiSXbjtkd9XkgBduvyVFFr9 PDs+a3lcL+xU4ZB6L6hwhhHpRdasIURlfxEkT0wltWV5/VjIgTuZb6daGFQ4WMAUccvMHx 9z93jKD6O33G/882NV/tNStlIremV7aWlydEzd+I+RLUztfqZyqnLldApePE7pi+Mz86xu hTt6wbezdkeEAZ48qVvI/YRQRV9nOoSHq5Nj5wZS7P+j+qtdj5tI6/zpYbU9Yw== 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 5589C6CEC3 for ; Tue, 20 Aug 2024 12:38:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgMFj-0003hu-84; Tue, 20 Aug 2024 06:38:15 -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 1sgMFg-0003hl-Hw for help-guix@gnu.org; Tue, 20 Aug 2024 06:38:12 -0400 Received: from [81.190.248.246] (helo=marekpasnikowski.pl) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgMFd-0005hD-PH for help-guix@gnu.org; Tue, 20 Aug 2024 06:38:12 -0400 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 4d0a7a18 for ; Tue, 20 Aug 2024 10:38:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type:content-transfer-encoding; s=dkim; bh=Ezry7Qdqicp5UtPsiJ3nYUZqBLSU5wgPhyonShcFo1k=; b=N1aGMxn5jZO6 1QKbmluydmagVrTR7sWc7vndeI4j4vYbk7BJiRgt5cV8hHPfrZQEXLNupiLttzK+ HNvu2gGJtgzBzc1vFC1dz3eXKokU2B3f3kB0wsYZF0fCrp0ylvW+s1OR/oT+54mv l2e99k+OMoLFW10BTV8DG+JgnX+/zKJlWLDVGnDIfFYtkJypMYmJ4DXvrYh2QgYQ /9cKi8Uc2zV61W0gJsSU6veCj1Y2LGXROK7yY/xS+Epx8rkKgmNFZ1F7OluHFxdP M6b93g7hPuZreslsn+slY3IfXLQWG25qIXvRUqi6NZQZZrcfvbtH91ZU2mh9ondJ moIugmlpiw== Received: by localhost (OpenSMTPD) with ESMTPSA id c9393ce5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 20 Aug 2024 10:38:02 +0000 (UTC) From: =?utf-8?Q?Marek_Pa=C5=9Bnikowski?= To: help-guix@gnu.org Subject: Re: Entering the sudo password before guix pull when updating the system In-Reply-To: <87msl83ymz.fsf@meson> (Ian Eure's message of "Mon, 19 Aug 2024 15:57:41 -0700") References: <87msl83ymz.fsf@meson> Date: Tue, 20 Aug 2024 12:38:01 +0200 Message-ID: <874j7fo4xi.fsf@marekpasnikowski.pl> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 81.190.248.246 (failed) Received-SPF: pass client-ip=81.190.248.246; envelope-from=marek@marekpasnikowski.pl; helo=marekpasnikowski.pl X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.01 X-Migadu-Queue-Id: 5589C6CEC3 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.01 X-TUID: ip0PLim1FafC Ian Eure writes: > Hi Oleander, > > Oleander via writes: > >> How can I enter the sudo password before `guix pull` runs when updating = with `guix pull && sudo >> guix system reconfigure config.scm`? >> > > I don=E2=80=99t believe there=E2=80=99s a reasonable way to do what you w= ant. I think your best option is to > configure your sudoers file so your user is allowed to run `guix system r= econfigure' command without > needing a password. See the sudoers(5) man page and `sudoers-file' field= of the operating-system > record. > > Thanks, > > =E2=80=94 Ian Good to know that Ian, thank you. My personal approach is to remove the password prompt timeout =E2=86=93 in = the sudoers-file and just have the command chain wait for the password when done pulling. Not time-efficient at all, but completely effortless for me. (define-module (suweren commons sudoers) #:use-module (guix gexp)) (define-public %sudoers-specification* (let ((content (string-append "root ALL=3D(ALL) ALL \n" "%wheel ALL=3D(ALL) ALL \n" "Defaults passwd_timeout=3D0 \n"))) (plain-file "sudoers" content)))