So, to clarify:
Is it that you want Chef to create a user with a password, but when that user first logs in for them to be forced to manually change their password? Or, do you want Chef to change their password if they’ve logged in successfully once? I assume that it’s the first case; seems like a more likely use-case. What operating system is on the VM?
I suspect the answer to this is going to involve some sort of execute call to chage
, but I’d need a bit more information to be sure.
Matt Moretti
Thanks drew,Through cookbook we can set like this.But I need to change password once i login to vm .IIn cookbook case first we need to install chef and then only we run that cookbook. So how is this possible to change password once login without cookbook from remote.
From: " " target="_blank"> " < " target="_blank"> >
To: Indra k < " target="_blank"> >
Cc: Chef < " target="_blank"> >
Sent: Monday, 22 June 2015 5:24 PM
Subject: Re: [chef] reg password change
Look at the 'users' cookbook. It allows managing user passwords as well as SSH keys and other user attributes.Hi all,I need to change password for vm .After logging vm with its user and password,it prompts for new password.Is this possible to set new password through cookbook.Regards,Indra
Archive powered by MHonArc 2.6.16.