nix-community / nix-user-chroot

Install & Run nix without root permissions [maintainer=@Mic92]
MIT License
281 stars 25 forks source link

Cannot delete .nix #85

Closed NickGeek closed 2 years ago

NickGeek commented 2 years ago

Hi, I installed Nix with nix-user-chroot and I'm wanting to delete my .nix directory. The issue is I get permission denied errors when deleting it. I do not have root on this machine so sudo is not available to help here.

rrbutani commented 2 years ago

Have you tried running chmod -R u+w .nix before trying to delete the directory? I think rm -f doesn't delete directories that don't have the writable bit set.

NickGeek commented 2 years ago

That worked! Thanks.