Get root password for Google Cloud Engine VM

后端 未结 3 1633
孤街浪徒
孤街浪徒 2020-12-07 16:02

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.

3条回答
  •  庸人自扰
    2020-12-07 16:12

    I had the same problem. Even after updating the password using sudo passwd it was not working. I had to give "multiple" roles for my user through IAM & Admin Refer Screen Shot on IAM & Admin screen of google cloud

    After that i restarted the VM. Then again changed the password and then it worked.

    user1@sap-hanaexpress-public-1-vm:~> sudo passwd
    New password: 
    Retype new password: 
    passwd: password updated successfully
    user1@sap-hanaexpress-public-1-vm:~> su
    Password: 
    sap-hanaexpress-public-1-vm:/home/user1 # whoami
    root
    sap-hanaexpress-public-1-vm:/home/user1 #
    

提交回复
热议问题