From patchwork Fri Feb 7 21:47:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Maja_K=C4=85dzio=C5=82ka?= X-Patchwork-Id: 20174 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 71C1C168E0; Fri, 7 Feb 2020 21:47:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 42D37168E0 for ; Fri, 7 Feb 2020 21:47:14 +0000 (GMT) Received: from localhost ([::1]:35566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0BSz-0005rI-Pi for patchwork@mira.cbaines.net; Fri, 07 Feb 2020 16:47:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44186) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0BSp-0005qF-D1 for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0BSo-00059H-Dl for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0BSo-00059D-9i for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0BSo-0002h6-8I for guix-patches@gnu.org; Fri, 07 Feb 2020 16:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39501] [PATCH] doc: Clarify how sudo and guix interact when updating Resent-From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Feb 2020 21:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39501@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15811120119913 (code B ref -1); Fri, 07 Feb 2020 21:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2020 21:46:51 +0000 Received: from localhost ([127.0.0.1]:50378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0BSd-0002Zd-Hn for submit@debbugs.gnu.org; Fri, 07 Feb 2020 16:46:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:48073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0BSa-0002Ww-10 for submit@debbugs.gnu.org; Fri, 07 Feb 2020 16:46:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44129) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0BSX-0005fT-N4 for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0BSW-00053F-7a for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:45 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:40838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j0BSV-000522-Vd for guix-patches@gnu.org; Fri, 07 Feb 2020 16:46:44 -0500 Received: (qmail 20878 invoked by uid 1009); 7 Feb 2020 22:46:40 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25716. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.008698 secs); 07 Feb 2020 21:46:40 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 7 Feb 2020 22:46:40 +0100 From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Date: Fri, 7 Feb 2020 22:47:10 +0100 Message-Id: <20200207214710.14987-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (After System Installation): Explicitly explain the mechanics of how sudo differs from a login shell. Some recent discussions on IRC suggest that the existing wording wasn't entirely clear. --- doc/guix.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 710cf97673..9f758706f6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -72,6 +72,7 @@ Copyright @copyright{} 2019 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Leo Prikler@* Copyright @copyright{} 2019, 2020 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* +Copyright @copyright{} 2020 Jakub Kądziołka@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -2439,6 +2440,11 @@ your system includes the latest security updates (@pxref{Security Updates}). Note that @command{sudo guix} runs your user's @command{guix} command and @emph{not} root's, because @command{sudo} leaves @code{PATH} unchanged. To explicitly run root's @command{guix}, type @command{sudo -i guix @dots{}}. + +The difference matters here, because @command{guix pull} updates +the @command{guix} command and package definitions only for the user it is ran +as. This means that if you choose to use @command{guix system reconfigure} in +root's login shell, you'll need to @command{guix pull} separately. @end quotation Join us on @code{#guix} on the Freenode IRC network or on