Closed GoogleCodeExporter closed 8 years ago
Thanks for reporting this.
This is in fact working as intended; `gcloud compute ssh` adds the user to the
sudoers file. The reasoning here is that anybody with the permissions to
manipulate the Compute Engine metadata (this is how `gcloud compute ssh` works)
has enough power to get root on the machine anyway.
If you'd like to do what you're describing, please use plain `ssh` to connect.
`gcloud compute ssh --dry-run` will tell you the necessary settings, but not
manipulate the metadata. I've manually verified that this will NOT add the user
to /etc/sudoers.
Original comment by z...@google.com
on 24 Nov 2015 at 5:52
Original issue reported on code.google.com by
vi...@simility.com
on 19 Nov 2015 at 7:14