GNU bug report logs -
#40344
inconsistent 'guix package --list-generations' for root
Previous Next
Full log
View this message in rfc822 format
On Tue, Mar 31, 2020 at 11:54:36AM +0300, Efraim Flashner wrote:
> When I run 'sudo guix package --list-generations' on a foreign distro
> I get a list of all the profiles for all the users, not just for root.
It's complicated on foreign distros, since they vary in how they
configure sudo, and since Guix is really based on login environments.
I think it's correct that you'd see your own user's generations. Doing
`sudo foo` doesn't totally change your user from Guix's point of view,
just your privilege level. You'd need `sudo --login` to become root.
Try `env`, `sudo env`, `sudo --login env`...
It's definitely not expected to see all the users' generations, though
(I can't reproduce that).
Exactly how it works on the foreign distro will probably vary by distro
and setup, however. `sudo guix ...` doesn't work at all on my Debian; it
fails with "sudo: guix: command not found" and I have to use `sudo
--login`.
This bug report was last modified 5 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.