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

manual: import needs root or trusted signature #1547

Closed
wants to merge 1 commit into from

Conversation

atondwal
Copy link

@atondwal atondwal commented Sep 1, 2017

nix-store --import needs to be either run as root, or on a
closure that's been signed by a trusted cache.

Currently this is mentioned nowhere in the manual, so this
makes it explicit

`nix-store --import` needs to be either run as root, or on a
closure that's been signed by a trusted cache.

Currently this is mentioned nowhere in the manual, so this
makes it explicit
@@ -1155,6 +1155,11 @@ that already exist in the Nix store are ignored. If a path refers to
another path that doesn’t exist in the Nix store, the import
fails.</para>

<para>
Note: this needs to be either run as root, or on a seralization with
signatures from a trusted cache.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite correct. Import needs to be run as a user who has write access to the Nix store, or (when using the Nix daemon) a trusted user (one listed in the trusted-users option).

Also, there are no binary cache signatures in the export/import file format. There was a legacy signing mechanism, but it has been removed.

@stale
Copy link

stale bot commented Feb 12, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 12, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants