-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cannot login as user from "generateCurrentUserPasswdEntry" #7499
Comments
Update: Below comment was extraced to a separate ticket: #7503 Another problem regarding For example the $ id -u
1000
$ podman run --rm -it --user=root --userns=keep-id quay.io/podman/stable tail -n2 /etc/passwd
podman:x:1000:1000::/home/podman:/bin/bash
USER:x:1000:995:USER:/:/bin/sh |
Second one is a separate, more serious bug - please file a new issue for it. |
For the first one - @rhatdan Thoughts? |
The /etc/passwd entry seems correct. |
@rhatdan Sure, but we're not messing with |
Not sure what you mean by logging into the user. Seems to me we have 4 possible values to stick in this field.
|
Initial decision from the team: we're going to set |
I'll take this one |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Since 2.0.5 podman creates a user account when
--userns=keep-id
is set. I experience problems using that account in the container. I think it might be caused by an invalid entry in/etc/passwd
.Steps to reproduce the issue:
Describe the results you received:
Command fails with this error: "su: Authentication failure"
Describe the results you expected:
No error.
Additional information you deem important (e.g. issue happens only occasionally):
Podman adds the following line to
/etc/passwd
:As far as I understand the password value "x" indicates that the password for this user can be found in the file
/etc/shadow
, but that file doesn't contain any entry for this user.If I change the password value from "x" to "*" (no password), then I can log in and use the user account normally.
This functionality was added in 3dfd863 cc @rhatdan @vrothberg
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: