[Nix-dev] [***SPAM***] Nix user permissions

Rickard Nilsson rickard.nilsson at telia.com
Fri Apr 9 14:25:01 CEST 2010


Hi!

I have started to play with Nix 0.15 on Ubuntu, using the prebuilt  
AMD64 package for Ubuntu 9.10.

However, I stumbled into some problems when I try to install packages  
with a normal user. This is what I do:

As root, I start "nix-worker --daemon"

Then, as a normal user I do:

$ source /etc/profile.d/nix.sh
creating /home/rnils/.nix-profile

$ export NIX_REMOTE=daemon

$ nix-channel --add  
http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable

$ nix-channel --updatedownloading Nix expressions from  
`http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/nixexprs.tar.bz2'...
   % Total    % Received % Xferd  Average Speed   Time    Time      
Time  Current
                                  Dload  Upload   Total   Spent    Left  Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:--  
--:--:--    100 2709k  100 2709k    0     0  4303k      0 --:--:--  
--:--:-- --:--:-- 4568k
unpacking channel Nix expressions...
error: creating directory `/nix/var/nix/gcroots/per-user/rnils':  
Permission denied
cannot unpack the channels at /usr/bin/nix-channel line 128.
Looking at the documentation, I can't find any other steps I need to  
do in order to get the nix-worker-as-root scenario working. Is the  
documentation maybe outdated?
Best regards,
   Rickard Nilsson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: PGP Digital Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100409/b36bf974/attachment.bin 


More information about the nix-dev mailing list