简体   繁体   中英

How to LogIn as root in Google Cloud Compute Engine?

I don't know why Internet giant Google has no instant chat support or ticketing support system for their services.

I have created a new instance under Google cloud compute engine with linux centos-6. Now i want to log into system via SSH with full root access so that i can install other softwares.

When i simply connect SSH through browser windows I see something like this "[abc_user@instance-1 ~]$". But this user has no full root access. My question is how to get full root access to my system or how to log in as root eg "[root@myserver ~]#" ?

Can you guys help me please? Thanks in advance.

The GCE images I've been using so far had sudo set up.

You can prefix your commands with sudo to act as root, eg sudo rpm ... or you just hop into a root shell with sudo -s

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM