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

Re-own /nix/var to 0:0, except for the per-user profiles #1337

Merged

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Dec 4, 2024

Some users are seeing installation failures because /nix/var has corrupted permissions.

I ran:

sudo chgrp 99 /nix/var
sudo chgrp -R 99 /nix/var/log

and made sure I had a profile directory:

CleanShot 2024-12-04 at 16 06 28@2x

then got:

CleanShot 2024-12-04 at 16 01 31@2x

and confirmed my per-user directory was not changed.

Description
Checklist
  • Formatted with cargo fmt
  • Built with nix build
  • Ran flake checks with nix flake check
  • Added or updated relevant tests (leave unchecked if not applicable)
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • Linked to related issues (leave unchecked if not applicable)
Validating with install.determinate.systems

If a maintainer has added the upload to s3 label to this PR, it will become available for installation via install.determinate.systems:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/$PR_NUMBER | sh -s -- install

@grahamc grahamc force-pushed the graham/fh-493-determinatepkg-failure-due-to-bad-nixvar-ownership branch from 744d0c0 to 05a95fa Compare December 4, 2024 21:47
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
@grahamc
Copy link
Member Author

grahamc commented Dec 4, 2024

@cole-h just tested when I chown'd the directories to 99, too, and it worked as expected. It no longer fails, just fixes.

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

The recursive chown'ing (even with the exceptions) still gives me pause but... theoretically seems OK.

@grahamc grahamc enabled auto-merge (squash) December 4, 2024 22:29
@grahamc grahamc merged commit 7ed07a6 into main Dec 4, 2024
21 checks passed
@grahamc grahamc deleted the graham/fh-493-determinatepkg-failure-due-to-bad-nixvar-ownership branch December 4, 2024 22:43
@cole-h cole-h added this to the 0.32.0 milestone Dec 9, 2024
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

Successfully merging this pull request may close these issues.

3 participants