Red Hat Bugzilla – Bug 1284717
On RHEL 7.2 environments, ssh access fails when a user is created using the 'user' module
Last modified: 2018-01-29 21:56:55 EST
Description of problem:
On RHEL 7.2 platforms, executing:
user: name="<user-name>" state=present password=<user-password> creates the user but trying to ssh to the host with that user will fail.
The following warning is seen:
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
Version-Release number of selected component (if applicable):
RHEL 7.2 (RC 1-1)
Always on baremetal environments
Sometimes on vrt env when reprovisioning is done prior
Steps to Reproduce:
1. Install RHEL 7.2 (RC 1-1) on a host machine
2. Run an Ansible playbook that create a user like:
user: name="<user-name>" state=present password=<user-password>
3. ssh from a remote host to the host machine as the user created
ssh fail authentication
should be able to ssh into the host machine when a user is created with reqired passwors or key files
userdel -f <user>;
rm -rf /home/<user>;
user: name="<user>" state=absent password=<user password>
user: name="<user>" state=present password=<user password>