widdix/aws-ec2-ssh

User password gets expired after 60 days on RHEL box

arun6445 opened this issue · 0 comments

Metadata:

  • Operating System: (RHEL 7.5)
  • Installation method: (RPM)
  • AWS CLI Version: (exec aws --version and enter value here)

(describe your issue here)
All the users that are synchronised with IAM user public keys, their linux password gets expired after 60 days and they are prompt to change their password. As users password have never been set , they are blocked and not able to login.

Probably need to add a command in import_users.sh file
passwd -x -1 ${username}