You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems the permissions for executing a rollback seem to be wrongly configured.
sudo nix run .#rollback leads to:
Running rollback for aarch64-darwin /nix/store/apw6xiz22d4hr5rz687yvy4v0nih23jd-rollback/bin/rollback: line 4: /nix/store/hcf07hxx5bdgzzfn85184zsd8sdan8is-source/apps/aarch64-darwin/rollback: Permission denied /nix/store/apw6xiz22d4hr5rz687yvy4v0nih23jd-rollback/bin/rollback: line 4: exec: /nix/store/hcf07hxx5bdgzzfn85184zsd8sdan8is-source/apps/aarch64-darwin/rollback: cannot execute: Undefined error: 0
When i look at the permissions of each of the management commands, I discovered:
-r-xr-xr-x 1 root nixbld 4746 Jan 1 1970 apply -r-xr-xr-x 1 root nixbld 431 Jan 1 1970 build -r-xr-xr-x 1 root nixbld 550 Jan 1 1970 build-switch -r--r--r-- 1 root nixbld 609 Jan 1 1970 rollback
Which indicates, no user is able to run the rollback. Would it mess with the config if I manually chmod the permissions to be the same as for the other scripts?
Also is there any point, this is configured in the setup? I haven't managed to find anything hinting that way...
Is this a me problem, or can someone else replicate the problem?
Cheers!
The text was updated successfully, but these errors were encountered:
benedictdaske
changed the title
Rollback is not executable
Rollback is not executable on MacOS
Jan 8, 2025
Hey there,
So it seems the permissions for executing a rollback seem to be wrongly configured.
sudo nix run .#rollback
leads to:Running rollback for aarch64-darwin /nix/store/apw6xiz22d4hr5rz687yvy4v0nih23jd-rollback/bin/rollback: line 4: /nix/store/hcf07hxx5bdgzzfn85184zsd8sdan8is-source/apps/aarch64-darwin/rollback: Permission denied /nix/store/apw6xiz22d4hr5rz687yvy4v0nih23jd-rollback/bin/rollback: line 4: exec: /nix/store/hcf07hxx5bdgzzfn85184zsd8sdan8is-source/apps/aarch64-darwin/rollback: cannot execute: Undefined error: 0
When i look at the permissions of each of the management commands, I discovered:
-r-xr-xr-x 1 root nixbld 4746 Jan 1 1970 apply -r-xr-xr-x 1 root nixbld 431 Jan 1 1970 build -r-xr-xr-x 1 root nixbld 550 Jan 1 1970 build-switch -r--r--r-- 1 root nixbld 609 Jan 1 1970 rollback
Which indicates, no user is able to run the rollback. Would it mess with the config if I manually chmod the permissions to be the same as for the other scripts?
Also is there any point, this is configured in the setup? I haven't managed to find anything hinting that way...
Is this a me problem, or can someone else replicate the problem?
Cheers!
The text was updated successfully, but these errors were encountered: