[Nix-dev] setuid wrappers (fuse/sshfs)

Eelco Dolstra e.dolstra at tudelft.nl
Tue Jan 3 11:41:56 CET 2012


Hi,

On 03/01/12 09:45, Mathijs Kwik wrote:

> I like to put every package I use in configuration.nix in
> environment.systemPackages.
> User-specific packages are all in ~/.nixpkgs/config.nix
> So basically. I don't use nix-env --install for separate packages,
> hence the default profile is empty.
> However, I wanted to use sshfs-fuse. Fuse has a setuid-wrapper for 'fusermount'.
> I tried it in my user-specific config.nix first, which didn't work.

I also have fuse and sshfs in environment.systemPackages so this should work.

What's the contents of /var/setuid-wrappers/fusermount.real?  It should be
something like /nix/store/...-system-path/bin/fusermount.  If it's
/nix/var/nix/profiles/default/bin/fusermount, then fusermount couldn't be found
in the system path so the setuid wrapper generator fell back to using the system
profile.  (See /etc/nixos/nixos/modules/security/setuid-wrappers.nix.)

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list