Closed FedX-sudo closed 2 years ago
Seems a mismatch between how podman passes the host's user to the container and the passwd. can you check with the other check I've implemented in the pull request #85 ?
Huzzah! That works! Thank you. I am seeing an issue, with my admittedly very niche way of doing configs (all my config files are symlinks because, Nix). I will attempt to fix that and open a PR for that as well. Thank you again, and this is an amazing tool!
Thanks a lot for reporting and future contribution :smile:
I use a short user name ("te"). Therefore
if ! grep -q "${container_user_name}" /etc/passwd; then
does not work, because "te" matches some lines. useradd is never called, passwd failes, I don't know how to resolve this in the script. But maybe the problem with short usernames should be mentioned in the documentation. Use a unique user name and everything works fine.
I use a short user name ("te"). Therefore
if ! grep -q "${container_user_name}" /etc/passwd; then
does not work, because "te" matches some lines. useradd is never called, passwd failes, I don't know how to resolve this in the script. But maybe the problem with short usernames should be mentioned in the documentation. Use a unique user name and everything works fine.
Just yesterday I've merged the fix for this situation #197
>
Just yesterday I've merged the fix for this situation #197
Perfect. Now it works. Thank you for your work.
Whenever I try to create a distrobox (NixOS host), I am informed
user 'fedx' does not exist in /etc/passwd
with the following podman logs: