nix-portable
nix-portable copied to clipboard
rm: cannot remove '.nix-portable/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-something/foo/bar': Permission denied
Reproduction step:
- Set
NP_LOCATIONon ram-based file system.NP_LOCATION="$TMPDIR" nix-portable bla bla bla -
rm -rf .nix-portable - See many
rm cannot remove '.nix-portable/store/...': permission deniederror.
@ShamrockLee Does running chmod -R 777 .nix-portable and then running rm -rf .nix-portable work for you?
Some directories in the nix store do not have the writable bit set; rm -f will delete "read only" files that are owned by your user but will not delete "read only" directories (afaik), hence the error. Because the folders are owned by your user you have permissions to run chmod.
@rrbutani It works! Thanks a lot!
It would be helpful to document this as a "way to clean-up" and a workaround of #25.