From mboxrd@z Thu Jan 1 00:00:00 1970 From: Taylan Kammer Subject: Re: Better support for single-user systems Date: Sat, 08 Dec 2018 20:35:37 +0100 Message-ID: <87lg4z4xrq.fsf@gmail.com> References: <87in0cghoo.fsf@gmail.com> <878t17djn4.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]:45072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVhS1-00078O-Ep for guix-devel@gnu.org; Sat, 08 Dec 2018 13:35:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVhS0-0001zx-Nu for guix-devel@gnu.org; Sat, 08 Dec 2018 13:35:41 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:46984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVhS0-0001zZ-H4 for guix-devel@gnu.org; Sat, 08 Dec 2018 13:35:40 -0500 Received: by mail-wr1-x42c.google.com with SMTP id l9so6650587wrt.13 for ; Sat, 08 Dec 2018 10:35:40 -0800 (PST) In-Reply-To: <878t17djn4.fsf@lassieur.org> (=?utf-8?Q?=22Cl=C3=A9ment?= Lassieur"'s message of "Mon, 03 Dec 2018 10:50:07 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Cc: guix-devel@gnu.org Cl=C3=A9ment Lassieur writes: > Hi Taylan, > > You don't need to use the root account at all.=20 > > Taylan Kammer writes: > >> Most desktop users have single unix account and are also in control of >> root. These users might not want to differentiate between the current >> guix version of root and their normal user. They might also not want >> to differentiate between the packages available to root and the normal >> user. As such I would propose the following two improvements: >> >> - Allow a system-wide guix installation that's updated with a special >> variant of 'guix pull' executed by root > > You can use you current user's guix installation for all commands that > need root's permissions with 'sudo -E', so you can consider that your > current user's guix account is the system-wide guix account. > > For example, 'sudo -E guix system reconfigure config.scm' updates the > system with your user's guix. Aha, thanks, I didn't know about this possibility. >> - Allow direct addition of packages to the system profile to obviate >> the need of running a full 'guix system reconfigure' after adding >> packages to the system configuration > > You don't need this if you use your user's guix installation only. Hmm, sometimes I prefer to just log in as root with 'sudo -i' when doing work where I'll need root privileges repeatedly. When I do that, my normal user's packages won't be available. But I guess 'sudo -E bash' might be a solution. I'll try that for now. :-) Taylan