[chef] Re: Re: reg password change


Chronological Thread 
  • From: Matthew Moretti < >
  • To: Chef < >
  • Subject: [chef] Re: Re: reg password change
  • Date: Mon, 22 Jun 2015 08:54:48 -0400

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


On Mon, Jun 22, 2015 at 8:14 AM, Indra k < " target="_blank"> > 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.



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.

§