From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 28 19:50:33 2021 Received: (at submit) by debbugs.gnu.org; 29 Dec 2021 00:50:33 +0000 Received: from localhost ([127.0.0.1]:47770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2NAn-0006U7-AK for submit@debbugs.gnu.org; Tue, 28 Dec 2021 19:50:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:35354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2KSK-0006FA-Ug for submit@debbugs.gnu.org; Tue, 28 Dec 2021 16:56:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2KSK-0002t4-Ne for bug-guix@gnu.org; Tue, 28 Dec 2021 16:56:28 -0500 Received: from mail-lj1-f173.google.com ([209.85.208.173]:39711) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2KSJ-0004n8-38 for bug-guix@gnu.org; Tue, 28 Dec 2021 16:56:28 -0500 Received: by mail-lj1-f173.google.com with SMTP id x4so15162483ljc.6 for ; Tue, 28 Dec 2021 13:56:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rdIU6BOHARcjDmpKja4Smph7peF7DG2Ib5TBj6nckLg=; b=Hld+tRsGzPXg4WdH/2s8aikEtJz9RLOdB9aiQSI+lUMvWd6QJrIPczE5s+U1pg44CK VyXXyYsPBTL7PYPKwqmTOvc8cDNRvnYC9ElzDa9ObXkIOEKcuUIHt0YmeO76ZdvYydQJ 5girlFVvp/fVxqq6e7yGmGjFBEALlg6l01ypGDlC6MgnNA2Nhz0ihn61/trcxfHAN64R 44GvrVmBKmsQsBX9RPKn1hRoS7tDYlk+5FAaWEiShzvvYHNqB/JZIWA55A10kTe+lArV LbgI0MKK7xYuZe9HbQ7TJlfOITFtYSCXyvFHo5eb2C/VCZ5u+xztXiT4SR8acEHP6BJD Bbpg== X-Gm-Message-State: AOAM533OPhX8Ej3QR2rpZvjpKbal1uSf0QjD50FG64r0l/O15La++K0n 6uoixxAF/X1cStHrfYbvc7TEXXmMV3csOw== X-Google-Smtp-Source: ABdhPJwEGRYa1kAiSSHbWh/LX5AlpnQW8u4JR2cRZxa4MMaIrX0Eui2FVUW0cqC16TNIGqBLtaPx8Q== X-Received: by 2002:a2e:9f17:: with SMTP id u23mr20800621ljk.309.1640728584674; Tue, 28 Dec 2021 13:56:24 -0800 (PST) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id u2sm2021961lfs.140.2021.12.28.13.56.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Dec 2021 13:56:24 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id x7so43967358lfu.8 for ; Tue, 28 Dec 2021 13:56:24 -0800 (PST) X-Received: by 2002:a05:6512:b9f:: with SMTP id b31mr20530625lfv.319.1640728583980; Tue, 28 Dec 2021 13:56:23 -0800 (PST) MIME-Version: 1.0 From: Akira Kyle Date: Tue, 28 Dec 2021 14:56:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Clarify note about sudo in 3.7 After System Installation To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.208.173; envelope-from=aikokyle@gmail.com; helo=mail-lj1-f173.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 28 Dec 2021 19:50:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) Hi, I'm trying to get going with guixsd for the first time and I just spent awhile trying to figure out what was going wrong trying to run 'guix pull' and 'guix system reconfigure /etc/config.scm'. The issue was that I was running both in shell obtained via 'sudo su' from my user shell. I had read the note about this in section "3.7 After System Installation" and thought since, following the note, I was running both in a root shell, this would be fine. Coming from nix, this is fine, however I see now that the environment and path are incorrect in a 'sudo su' shell as the guix that was being used was the system guix from /run/current-system/profile and not /root/.config/guix/current which led to the effective system downgrade that running guix system reconfigure kept warning about. I would suggest updating the documentation to explicitly say 'sudo su' should not be used since I expect there are many others like me who are ignorant to the differences between 'sudo su' and 'sudo -i' Thanks, Akira