From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Date: Thu, 29 Mar 2018 12:07:50 +0200 Message-ID: <87o9j7dwjt.fsf@elephly.net> References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> <87efk3wcdt.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1UUW-0004TI-5Z for bug-guix@gnu.org; Thu, 29 Mar 2018 06:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1UUR-0004yp-8B for bug-guix@gnu.org; Thu, 29 Mar 2018 06:09:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50071) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1UUR-0004yj-1z for bug-guix@gnu.org; Thu, 29 Mar 2018 06:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f1UUQ-0003Qn-EZ for bug-guix@gnu.org; Thu, 29 Mar 2018 06:09:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87efk3wcdt.fsf@lassieur.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 30728@debbugs.gnu.org Hi Cl=C3=A9ment, > I am surprised that you didn't comment on > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30728#32 (where I explain > to you why I disagree with Guix being installed in ~root) before saying > LGTM. Don=E2=80=99t be surprised: there are too many emails and I=E2=80=99m bound= to forget about some. My apologies for not repyling to your email earlier. I read your mail but I disagree with the conclusions. It is not the job of the installer script to install Guix for a particular user. It is for a site-wide installation, including the set up of the daemon and a service script. These things must happen as root. The idea is that Guix is installed for the whole site and made available to all users. Individual users can then choose to use =E2=80=9Cguix pull=E2=80=9D to cont= rol their own version of Guix. I consider it inelegant and dangerous to make the Guix installation of an unprivileged user the variant of Guix that is used by all users on the system. Having it managed by the root user avoids surprises, even on single-user systems, because the implication is that changes to the root user=E2=80=99s Guix installation have system-wide effects. The proposed patch is small and fixes the bug with regard to the intention behind the script, so I=E2=80=99m happy to accept it. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net