-
Notifications
You must be signed in to change notification settings - Fork 24k
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
Ansible creates locked user on Alpine #68676
Comments
Files identified in the description: If these files are incorrect, please update the |
Hi,
It worked on my end(Alpine 3.11.5). I hope this helps. |
it does not need to be |
I wanted to create an user which is not locked. |
@FloMiau understood, was just responding to the comments, i do suspect this is an issue with the busybox handling in the user module. |
Files identified in the description: If these files are incorrect, please update the |
Change: - On busybox systems such as Alpine, user accounts which are created with no password are locked by default until their password is changed. For consistency with other platforms, if not given a password, manually unlock the account so that it is accessible by key access. Test Plan: - Local Alpine VM Tickets: - Fixes ansible#68676 Signed-off-by: Rick Elrod <rick@elrod.me>
Can we get this merged, this seems rather important and has just stung me. |
I know this is an old thread but this just bit me as well. |
* When creating a user account with no password on busybox systems such as Alpine, the account is now unlocked after it is created, for consistency with other platforms * Added helper method to write safely the contents to shadow file Fixes: ansible#68676 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
resolved_by_pr #84642 |
* When creating a user account with no password on busybox systems such as Alpine, the account is now unlocked after it is created, for consistency with other platforms * Added helper method to write safely the contents to shadow file Fixes: ansible#68676 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
I'm creating an user via ansible. This works on Debian based system like Ubuntu 16, 18, Raspbian, Debian.
The same tasks don't work on Alpine Linux. The user is created but no login is possible. Die user is locked.
This issue is maybe related to #61911 and #66679.
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/system/user.py
ANSIBLE VERSION
I had the same problem on 2.9.5
CONFIGURATION
OS / ENVIRONMENT
Target:
Alpine 3.11.5
STEPS TO REPRODUCE
EXPECTED RESULTS
User is created and it is possible to login.
ACTUAL RESULTS
User is created and it is not possible to login.
The text was updated successfully, but these errors were encountered: