Running `guix pull` as "root" user

  • Open
  • quality assurance status badge
Details
4 participants
  • Giovanni Biscuolo
  • Raghav Gururajan
  • Ricardo Wurmus
  • Raghav Gururajan
Owner
unassigned
Submitted by
Raghav Gururajan
Severity
normal
R
R
Raghav Gururajan wrote on 25 Jun 2019 18:09
(address . bug-guix@gnu.org)
e3f01ebc13d825b3b6c8ae3b83175275acb3ceec.camel@disroot.org
Hello Guix!

On a newly installed Guix System, before running first `guix pull`, the
output for `which guix` and `hash guix` for both "root" and "regular"
user are `/run/current-system/profile/bin/guix`. This is okay.

After running first `guix pull` as "regular" user, the output for
`which guix` and `hash guix` for that "regular" user are always
`/home/rg/.config/guix/current/bin/guix`. This is okay.

But after running first `guix pull` as "root" user, the output for
`which guix` and `hash guix` for that "regular" user are always
`/run/current-system/profile/bin/guix` instead of being
`/root/.config/guix/current/bin/guix`. This is a bug?

Thank you!

Regards,
RG.
R
R
Raghav Gururajan wrote on 25 Jun 2019 18:15
(address . 36379@debbugs.gnu.org)
6474de4c6596a7d93794cb5efd7dc57f0398a51e.camel@disroot.org
Toggle quote (5 lines)
> But after running first `guix pull` as "root" user, the output for
> `which guix` and `hash guix` for that "regular" user are always
> `/run/current-system/profile/bin/guix` instead of being
> `/root/.config/guix/current/bin/guix`. This is a bug?

Sorry there is a typo. On second line, it is "for the 'root' user", NOT
"for that 'regular' user".

Regards,
RG.
G
G
Giovanni Biscuolo wrote on 26 Jun 2019 15:49
Re: bug#36379: Running `guix pull` as "root" user
(name . Raghav Gururajan)(address . rvgn@disroot.org)(address . 36379@debbugs.gnu.org)
87k1d84fsp.fsf@roquette.mug.biscuolo.net
Hello Raghav,

sorry I missed to send my reply to 36379@debbugs.gnu.org also

Raghav Gururajan <rvgn@disroot.org> writes:

Toggle quote (6 lines)
>> Can you please specify how you ran `guix pull` as root?
>>
>> Did you `su && guix pull`, `sudo guix pull` or `sudo -E guix pull?`
>
> I did by logging in as "root" in gdm.

OK thanks, I'll try to reproduce this ASAP

Gio'.

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAl0TeAYACgkQ030Op87M
ORIyPw/8C7WUqlD9EjaItlHgjs52MtWnAUYDwL537JowG3NSfMGcJracSDW33ZCG
WIWJ7pLPE6/kfLHY3znhmHT2CU5LdLy9lsZaBnLdZcxHeeONaNiNYKZ/8rTYCz/Q
rk+0RFst/xBTqQzdBPl0QZZuhVxYCpOEsRAvOd9KA266RPUzI8rkJ0LWaJSeCbZY
OFQabu0SY99EuWuxtklVX5aJ6PSta1Ntr/gkZm1V6IcRCANumfiLG4TzmCuY6DEV
MoafMXuIWKB82YW79sJ0y02Uwlh+lZ8PYSKBo86ZcpTLcfQFoy6NFYSmvc12qrI+
EiLh2T9HsmMuhy7it9SL7x0h5lQ1JYdZrBU/can86K8UqzDO+MSWSgY9Z5vNBplt
CpDKW/+DaBtv7FdrHO1SKoCDLtW1HfsYEKevrmk0WtLlcYEH5Fnqxpws5FRfI51t
gX8at2m0R4nKMbfXT4lpNNZk8E/Gx+3QfjIMJQo7OHbTxxbr7s9P+soBkN4bmq4s
gmTs+Se0k10z96bYRGYiJCWWiUB/lyEevnGMKbP/6fqxhr9Cx3JC3AwtRmAkVY3f
iVYWF7cXMh4f+6NQ53mQsEPDfQgNy1i7UnSrby7JZA52qYs/lRL9+EqqBPF8Ws83
QmUvHt/ze+C5xrddCwWGEEGGmQ9A2gbGzqxaWsBedtE4Ml+DwVQ=
=JlXW
-----END PGP SIGNATURE-----

R
R
Raghav Gururajan wrote on 26 Jun 2019 18:37
(name . Giovanni Biscuolo)(address . g@xelera.eu)(address . 36379@debbugs.gnu.org)
6c1867c4c842a0d42182be2e7f9be8b25fae2043.camel@disroot.org
Toggle quote (4 lines)
>
> OK thanks, I'll try to reproduce this ASAP
>

That would be great. Thank you very much.

Regards,
RG.
R
R
Raghav Gururajan wrote on 2 Jul 2019 02:52
(name . Giovanni Biscuolo)(address . g@xelera.eu)(address . 36379@debbugs.gnu.org)
54f513ecc386eddcd5fb665c0a39c62d9c590b95.camel@disroot.org
Hi Giovanni!

Any update please?

Regards,
RG.
R
R
Raghav Gururajan wrote on 2 Jul 2019 21:03
severity 36379 important
(address . control@debbugs.gnu.org)
53be2b396bf531ccc871e96f750817e3a31018a0.camel@disroot.org
severity 36379 important
G
G
Giovanni Biscuolo wrote on 5 Jul 2019 09:31
Re: bug#36379: Running `guix pull` as "root" user
(name . Raghav Gururajan)(address . rvgn@disroot.org)(address . 36379@debbugs.gnu.org)
87zhltx7h4.fsf@roquette.mug.biscuolo.net
Raghav Gururajan <rvgn@disroot.org> writes:

Toggle quote (4 lines)
> Hi Giovanni!
>
> Any update please?

Just that I was too busy with my work and I had to delay this.

Maybe next week I'll be able to reproduce, but don't hold your breath

Regards, Gio'.

--
Giovanni Biscuolo

Xelera IT Infrastructures
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAl0e/OgACgkQ030Op87M
ORLn8w/8Djanwjd9JQ7r1HyoY7Zlp7bLhBeRfQ0PN7Gs1PbgfY552xn7n2PJb2tN
neAcAtebqbL5YJ2r+cSfU8GPKvQykorqpEik6ir+MJJHH9qns9uBuqkhRdEYe/qA
GmzjM/g91bwTuw7eZXHMTUUS6MMKF/VQN6AexpujPGXDmpL1tIXRIWh59qtX9k/w
XT5xNcxyJzfUdL++otEQ5lY++iL1XBob+xpxy/5nxT7qUGjgUSaEXihX7ckJjpIl
NgjH94TIbczioLslQEmpi3cKN0Jcjy7vICF20jyMzJinPUphljcEhA2HGFtI03eB
GFvv50xNuKTTYKGPHbRojp3f6KPXSGYIgAeZVhvUidNZSs/W4U1XkUQjWMxHFMI0
fYLUUC34pzQEoyLUWY9jwzs7Z9owkDE0KHqCmlm+mEFCDP0fCXWaDBWPwE/TvXVn
lsf6bPwdXQyjpCW36uaEZDwMdQVKh9dQMCrbXqdE0Xjn82vvwJnFC1dovC06Gvux
LANbkm2cyGyN7L129KjBDBAeA/tJRWFVL8vwFNSrcFQVZmghiuLHKX7+ZiXiIYYN
AnvUErqbTiAlSLMtxEJQy/lXZ5TT1Kzzrd+AALTYayYIeoIDp9la4jjQVfyomQUr
ciceW9WQQB0EfOxJnZA6oRRKV5blXW+nLOsYnBRwEQR/U4wQSH0=
=Flvr
-----END PGP SIGNATURE-----

R
R
Raghav Gururajan wrote on 5 Jul 2019 20:20
(name . Giovanni Biscuolo)(address . g@xelera.eu)(address . 36379@debbugs.gnu.org)
2bd96ff8bb6b7e89a9a61c47cec415e905ae30e7.camel@disroot.org
Toggle quote (4 lines)
> Just that I was too busy with my work and I had to delay this.
>
> Maybe next week I'll be able to reproduce, but don't hold your breath

That's okay.

Regards,
RG.
R
R
Raghav Gururajan wrote on 25 Jul 2019 11:57
ATTENTION REQUIRED
(address . 36379@debbugs.gnu.org)
331a404c915937b18091dfc969dec3fc10ce869d.camel@disroot.org
Hello Guix!

I am not sure whether someone patched this bug. There has been changes.

REPORTED ISSUE: After running first `guix pull` as "root" user, the
output for `which guix` and `hash guix` for that "root" user are always
`/run/current-system/profile/bin/guix` instead of being
`/root/.config/guix/current/bin/guix`.

PREVIOUSLY: The issue happens *both* when running guix pull by logging
in as root user from gdm and when doing `su && guix pull` as regular
user.

NOW: It happens only when doing `su` and `guix pull` in terminal as
regular user.

Regards,
RG.
R
R
Ricardo Wurmus wrote on 14 May 2020 17:00
adjust importance
(address . control@debbugs.gnu.org)
87v9kyimt6.fsf@elephly.net
severity 36379 normal
severity 41138 normal
severity 34400 normal
quit
?