Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should --explain require root? #1368

Open
jfly opened this issue Jan 2, 2025 · 0 comments
Open

Should --explain require root? #1368

jfly opened this issue Jan 2, 2025 · 0 comments

Comments

@jfly
Copy link

jfly commented Jan 2, 2025

It looks like right now, nix-installer tries to escalate to root before printing out an explanation of what it's going to do. For example:

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | env NIX_INSTALLER_EXPLAIN=true sh -s -- install
info: downloading installer https://install.determinate.systems/nix/tag/v0.32.2/nix-installer-aarch64-darwin
 INFO nix-installer v0.32.2
nix-installer needs to run as root, attempting to escalate now via sudo...
Password:
sudo: a password is required

Is this intentional? It's scaring a friend of mine away before they can even try out nix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant