Skip to content

mkdir: cannot create directory `/nix/var/nix/profiles/per-user': Permission denied #49

Closed

Description

@karltk

Installed the nix 1.1- .deb package on 10.04 Lucid.

After Nix has been installed, whenever I login as a user (or otherwise run /etc/profile.d/nix.sh), I get the above error. The fix suggested in http://yellowgrass.org/issue/NixOS/149, chmod go+wt, works just fine.

The chmod'ing must also be done for the per-user gcroots directory.

Activity

  1. added a commit that references this issue on Aug 28, 2020
  2. added a commit that references this issue on Feb 26, 2025
  3. added a commit that references this issue on Mar 5, 2025
  4. added a commit that references this issue on Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions