I am trying to use Ansible to create a new user and set a password for this user. I want to test if the password was actually set. I figure a command that forces me to enter the user's password would be ideal. My question is: Given I have root access, is there a command that forces me to enter the newly created user's password? Something like a sudo that forces a password?
Command to force user to enter password - RHEL/Centos
bash;sudo