I am trying to authenticate as sudo in a linux Google Cloud VM. I know there are several similar questions, but none have solved my problem. Here's what I've tried:
- Setting a password using
sudo passwd
, as in this answer. - Giving myself 'Compute Admin' permissions in IAM, and then running
sudo passwd
, as in this answer. - Running
sudo invoke-rc.d procps start
, as in this answer. - Running
sudo passwd
in the cloud shell terminal, successfully setting a password there, restarting and SSHing into my VM, and then trying to either set a password or authenticate as sudo
For all these, I am connecting using GCloud's SSH in browser. Every time, I just get prompted for the sudo password, and nothing I type in works. In case it matters, my google cloud account is associated with an institutional (university) google account.
I'm at a loss here. Any suggestions are much appreciated!