Skip to content

error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted #3435

@amckinlay

Description

@amckinlay

After installing multi-user nix, the following error occurs when running nix-shell:

andrewmckinlay@imac ~ % nix-shell -p nix-info --run "nix-info -m"
error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
andrewmckinlay@imac ~ % ls -ld /nix/var/nix/profiles/per-user
drwxr-xr-x  3 root  staff  96 Mar 21 13:01 /nix/var/nix/profiles/per-user

Metadata

Metadata

Assignees

No one assigned

    Labels

    error-messagesConfusing messages and better diagnostics

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions