widdix / aws-ec2-ssh

Manage AWS EC2 SSH access with IAM
https://cloudonaut.io/manage-aws-ec2-ssh-access-with-iam/
MIT License
828 stars 289 forks source link

User password gets expired after 60 days on RHEL box #148

Open arun6445 opened 5 years ago

arun6445 commented 5 years ago

Metadata:

(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}