Table of Contents

Changing Default Accelerator Passwords

There are a few default passwords that should be changed when you first get your Accelerator. This is how to change them via the command line.

This individual knowledge base article applies to both Joyent Accelerators, and Facebook Accelerators (those with .fb.joyent.us in their hostnames).

If you intend to keep Virtualmin around to manage hosting for your Accelerator, it's advisable to use the Virtualmin controls for password changing, so that Virtualmin knows the passwords for your users and can use them as it goes. Otherwise you may get into a situation where a single user has a different password for system login, and for MySQL or SVN. This applies to users created through Virtualmin (i.e. not 'root' and 'admin').

Admin User

Log in to your accelerator over ssh.

Run:

  passwd

And you'll be prompted for your current password (supplied by Joyent), and your new password.

Root User

As the admin user, run:

  sudo passwd root

You will not be prompted for the current password, but asked to enter in your new one.

MySQL Root User

Log in to MySQL:

  mysql -u root -p

You'll be prompted for your MySQL password, supplied by Joyent. Once at the MySQL prompt, run this command:

  SET PASSWORD FOR root@localhost=PASSWORD('yournewpassword');

MySQL should return a string like the following:

  Query OK, 0 rows affected (0.05 sec)

You can then type quit to exit the command line MySQL interface.

After exiting the MySQL command line interface, you should edit your .mysql_history file to remove the entry that shows your password.

If you use webmin you also need to update the password there as well

Webmin User

Run this command:

  sudo /opt/webmin-1.380/changepass.pl /etc/webmin admin yournewpassword

And that should allow you to change the password from the command line.

The path to changepass.pl may change as the version of webmin increases. In the example above its version 1.380.

After logging out and back in, you should edit your .bash_history file to remove the entry that shows your password.

There is also probably a way to change the password from within webmin.

From within Webmin
Updating Webmin modules configuration

If you changed the password of MySQL or PostgreSQL, and you care of any Webmin or Virtualmin functionality, you'll need to update both modules configuration in Webmin so that it has access. Just login to Webmin, switch your view to the Webmin pane, click MySQL or PostgreSQL and follow the 'Module Config' option on the top for a form that will let you enter the new root password for the service.