Get root password for Google Cloud Engine VM

Meru-kun picture Meru-kun · Jan 26, 2016 · Viewed 118.4k times · Source

I just finished installing cPanel in a CentOS VM in Google Cloud Engine and cPanel said the default username is root and the default password is the server's root password.

2016-01-26 12:02:52  958 ( INFO): 3. Enter the word root in the Username text box
2016-01-26 12:02:52  958 ( INFO): 
2016-01-26 12:02:52  958 ( INFO): 4. Enter your root password in the Password text box
2016-01-26 12:02:52  958 ( INFO): 
2016-01-26 12:02:52  958 ( INFO): 5. Click the Login button

How do I get the server's root password?

Answer

Meru-kun picture Meru-kun · Jan 26, 2016

Figured it out. The VM's in cloud engine don't come with a root password setup by default so you'll first need to change the password using

sudo passwd

If you do everything correctly, it should do something like this:

user@server[~]# sudo passwd
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.