Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No user exists for uid when using ssh or whoami #112

Open
DCsunset opened this issue Feb 11, 2023 · 1 comment
Open

No user exists for uid when using ssh or whoami #112

DCsunset opened this issue Feb 11, 2023 · 1 comment

Comments

@DCsunset
Copy link

Within nix-user-chroot ~/.nix bash, the program whoami and ssh stop working because it cannot find the user for the uid.

The uid doesn't change after running nix-user-chroot, but for some reason it can no longer find the user.

A similar issue is NixOS/nixpkgs#64665 but the solution no longer works since there's no libnss_sss.so.2 in my system.

@alecandido
Copy link

alecandido commented Nov 14, 2023

I guess it is working similarly to the containers runtimes, and the uid inside nix-user-chroot shell doesn't match to the uid on the host, but there is a non-trivial mapping.

https://en.wikipedia.org/wiki/Linux_namespaces#User_ID_(user)

However, I'm also looking for an option to make ssh (and therefore Git operations based on SSH) working within nix-user-chroot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants