emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#37148: closed ( ‘sudo guix pull’ creates root-own


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#37148: closed ( ‘sudo guix pull’ creates root-owned =?UTF-8?Q?/home/$USER/.cache/guix/=E2=80=A6?=)
Date: Thu, 19 Sep 2019 08:25:03 +0000

Your message dated Thu, 19 Sep 2019 10:24:18 +0200
with message-id <address@hidden>
and subject line Re: bug#36785: Impossible to pull on foreign distro
has caused the debbugs.gnu.org bug report #36785,
regarding ‘sudo guix pull’ creates root-owned /home/$USER/.cache/guix/…
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36785: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36785
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: ‘sudo guix pull’ creates root-owned /home/$USER/.cache/guix/… Date: Thu, 22 Aug 2019 18:56:32 +0200
Guix,

After running ‘sudo guix pull’, some directories that guix assumes to be writable are not:

 $ guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... guix pull: error: Git error: failed to create temporary file '/home/adom/.cache/guix/pull/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/objects/pack/pack_git2_dVwpVq': Permission denied
 $

Now Guix isn't doing anything wrong, per se, and that error message will tip off most jaded Unixbeards, but how about a:

 $ guix pull
warning: /home/<USER>/.cache/… is not writable by the current user <USER> hint: You might want to run ‘chown -R <USER>:<USER> /home/…’ [or just delete it outright? -nckx]
 …

?

Thanks to adom` in #guix for posting that output.

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#36785: Impossible to pull on foreign distro Date: Thu, 19 Sep 2019 10:24:18 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Hi,

Ricardo Wurmus <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:

[...]

>> We could apply the patch I posted earlier, which simply disables profile
>> migration when SUDO_USER is set.  That won’t address the fact that root
>> writes to the user’s ~/.cache, but there’s not much we can do here.
>
> This sounds fine to me.

I went ahead and pushed that as
ee25048e51dd45ad91a1ad4b0f25f4013843c52b.

Thanks,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]