unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 40344@debbugs.gnu.org
Subject: bug#40344: inconsistent 'guix package --list-generations' for root
Date: Tue, 31 Mar 2020 11:45:48 -0400	[thread overview]
Message-ID: <20200331154548.GA9695@jasmine.lan> (raw)
In-Reply-To: <20200331085436.GD5436@E5400>

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`.

  reply	other threads:[~2020-03-31 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-31  8:54 bug#40344: inconsistent 'guix package --list-generations' for root Efraim Flashner
2020-03-31 15:45 ` Leo Famulari [this message]
2020-03-31 17:48   ` Efraim Flashner
2020-03-31 18:17     ` Leo Famulari
2020-03-31 18:30       ` Efraim Flashner
2020-03-31 18:56         ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200331154548.GA9695@jasmine.lan \
    --to=leo@famulari.name \
    --cc=40344@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).