Re: How to set the root password of a VM from Vagrant?

2,528 views
Skip to first unread message

Mark Waddle

unread,
Feb 13, 2013, 11:41:49 AM2/13/13
to vagra...@googlegroups.com
Out of curiosity, why do you want to set the root password? So far I have found that sudoing from the vagrant account meets all my needs.

Regardless, the easiest way is probably with a shell provisioner statement.

On Wednesday, February 13, 2013 3:37:39 AM UTC-8, Rob Davis wrote:
I've successfully setup a lucid32 box and have used putty and puttygen in Windows to log into it. However I'd also like to be able to set the root password from the Vagrant file or a puppet file.

Chad Thompson

unread,
Feb 13, 2013, 11:38:01 AM2/13/13
to vagra...@googlegroups.com

On 13 Feb 2013, at 5:37, Rob Davis wrote:

I've successfully setup a lucid32 box and have used putty and puttygen in Windows to log into it. However I'd also like to be able to set the root password from the Vagrant file or a puppet file.

If you needed to change the root password to the box (what's the use case here?) - you could execute a shell command in a puppet script, something along the lines of:

http://stackoverflow.com/questions/8236699/script-to-change-password-on-linux-servers-over-ssh

-- 
Chad Thompson 
chad_t...@mac.com

Reply all
Reply to author
Forward
0 new messages