Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get root password for Google Cloud Engine VM

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?

like image 282
Meru-kun Avatar asked Jan 26 '16 14:01

Meru-kun


People also ask

What is my Google Cloud VM password?

The default username is admin and the default password is the GCP instance ID, which is represented as a number that can be found after locating the instance in the GCP Compute Engine console.


1 Answers

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. 
like image 63
Meru-kun Avatar answered Sep 28 '22 17:09

Meru-kun