TurnKey Linux Virtual Appliance Library

TKLBam update Passwords in Restore?

L. Arnold's picture

I have found TKLBAM to be very helpful for process development..  However, I have run into a few security issues where it has seemed that the best course of action is to "change" passwords with TKLBAM restore.

To date, my experience is that I have to make a new VM with the same password set at time of install, so that the TKLBAM update does not change anything and works directly.

Is there a quick way to systematically "post restore" change the passwords for the following?

root-ubuntu

root-sql

admin-(for the ap)

Could this be done in the VM Build or Restore Process?

thanks in advance.

L. Arnold

Jeremy's picture

Changing root passwords pretty easy

Changing the root Ubuntu and MySQL passwords is pretty easy if you know what the current ones are. You could make a bash script to do it pretty easy I would think. Perhaps you could just use the firstboot script that TKL uses to set them in the first place? Even if you don't know what they are you can do it fairly easy to (although I don't know whether you could script it that easy).

Even if you don't know what they are you can change the root OS password with a live CD (check the Ubuntu documentation - I can't recall the full process OTTOMH). Chaning the MySQL root password is also fairly easy. There is a maintenance account called 'debian-maint' (or similar - again can't 100% recall) and the password is randomly generated and can be found in one of the conf files in /etc/mysql

As for other applications, it will vary for the individual app although again perhaps you could trigger the TKL scripts that set the initial passwords on first boot. You'll need to test though to see if it'll work. Be interesting to hear how you go with it.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)