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
Look at the 'users' cookbook. It allows managing user passwords as well as SSH keys and other user attributes.
https://supermarket.chef.io/cookbooks/users
On Jun 22, 2015, at 5:21 AM, Indra k indra.k@cloudenablers.com wrote:
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
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: "drew@blessing.io" <drew@blessing.io>
To: Indra k indra.k@cloudenablers.com
Cc: Chef chef@lists.opscode.com
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.
https://supermarket.chef.io/cookbooks/users
On Jun 22, 2015, at 5:21 AM, Indra k indra.k@cloudenablers.com wrote:
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
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
https://docs.chef.io/resource_execute.html call to chage
http://linux.die.net/man/1/chage, but I’d need a bit more information to
be sure.
Matt Moretti
On Mon, Jun 22, 2015 at 8:14 AM, Indra k indra.k@cloudenablers.com wrote:
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: "drew@blessing.io" drew@blessing.io
To: Indra k indra.k@cloudenablers.com
Cc: Chef chef@lists.opscode.com
Sent: Monday, 22 June 2015 5:24 PM
Subject: Re: [chef] reg password changeLook at the 'users' cookbook. It allows managing user passwords as well as
SSH keys and other user attributes.https://supermarket.chef.io/cookbooks/users
On Jun 22, 2015, at 5:21 AM, Indra k indra.k@cloudenablers.com wrote:
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