How to disable creating users in Google compute engine

0 votes
I've got a CoreOS cluster running on GCE and one issue that I've noticed with all GCE instances is that as long as you're auth'd with the project on Google Cloud platform, you'll be able to login in as just about anything on the servers.

This is a problem for me as anyone on the team, or anyone who gets into the project, can ssh right in as anyone to the server.

I would prefer to disable this and simply use users I've created in my cloud-config file that have such ssh keys and passwords that expire. How do I disable it?
Oct 16, 2019 in GCP by anonymous
• 19,610 points
863 views

1 answer to this question.

0 votes

You can stop a GCE instance from adding accounts by guaranteeing the google-account-manager service doesn't run.

On CoreOS you can stop this service with

sudo systemctl stop google-accounts-manager.service

and then disable it permanantly with

sudo systemctl disable google-accounts-manager.service.

You may need to create an image with the service pre-disabled (or even delete the unit file) so after you create instances it does not create accounts before you disable the service.

answered Oct 16, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

+1 vote
2 answers

How to open a port on google compute engine

You need to set the firewall rule ...READ MORE

answered Jul 10, 2019 in GCP by K sagar
3,653 views
+2 votes
2 answers

How to download multiple files in Google Cloud Storage?

You can achieve this through the gsutil ...READ MORE

answered May 9, 2018 in GCP by kurt_cobain
• 9,390 points
22,862 views
0 votes
1 answer
0 votes
1 answer

Is it possible to use Windows Server Containers OS in Google Kubernetes Engine?

It is possible to run Windows containers, however solely as a container in a compute Engine ...READ MORE

answered Sep 25, 2019 in GCP by anonymous
• 59,230 points
442 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
2,613 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,020 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP