[Nix-dev] root doesn't have permissions to nix-store --optimise

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Sat Jul 19 03:23:28 CEST 2014


On 07/14/2014 09:28 AM, Luca Bruno wrote:
> On 13/07/2014 17:56, Mateusz Kowalczyk wrote:
>> Hi,
>>
>> I'm trying to free up some space so I wanted to run --optimise but
>> apparently I'm no longer allowed to:
>>
>> [root at lenalee:/home/shana/programming/haddock]# nix-store --optimise
>> 0.00 MiB freed by hard-linking 0 files; there are 0 files with equal
>> contents out of 0 files in total
>> error: you don't have sufficient rights to use this command
>>
>> Does anyone know what's up?
>>
> try NIX_REMOTE= nix-store --optimise
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 

Oops I forgot to reply to this. That indeed worked. What causes the
issue to begin with and how can it be fixed properly? When I checked
NIX_REMOTE, it was set to ‘daemon’.

-- 
Mateusz K.


More information about the nix-dev mailing list