Nixpkgs: Using ssh fails with: No user exists for uid 17342423423

Created on 12 Jul 2019  路  4Comments  路  Source: NixOS/nixpkgs

Issue description

Using ssh (and git via ssh) results in error: No user exists for uid 17342423423

Steps to reproduce

  • Install single user Nix on Ubuntu 16.04 using nix-user-chroot method.
  • Execute command ssh [email protected]

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.4.0-151-generic, Ubuntu, 16.04.6 LTS (Xenial Xerus)
  • multi-user?: no
  • sandbox: no
  • version: nix-env (Nix) 2.2.2
  • channels(rafalh): "nixpkgs-19.09pre185219.ed86bbad84c"
  • nixpkgs: /home/rafalh/.nix-defexpr/channels/nixpkgs

Most helpful comment

I have in my ~/.bashrc:

export LD_PRELOAD=/lib/x86_64-linux-gnu/libnss_sss.so.2

All 4 comments

I encountered this at work where the host operating system used SSSD for authentication. If I recall correctly I had to LD_PRELOAD a certain library. If you think this is your issue, I can come back with the solution on Monday.

Yeah, seems like this might be it.

I have in my ~/.bashrc:

export LD_PRELOAD=/lib/x86_64-linux-gnu/libnss_sss.so.2

This is it. Solved the problem. Thanks a lot.
Additional this fixes #64666

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yawnt picture yawnt  路  3Comments

grahamc picture grahamc  路  3Comments

ayyess picture ayyess  路  3Comments

spacekitteh picture spacekitteh  路  3Comments

tomberek picture tomberek  路  3Comments