I desired to give an access to dev team, so I created 'tempuser' and then cmd to grant ssh connection following
tempuser@instance-1:~$ gcloud compute ssh tempuser@instance-1
It worked well, but It also added this "tempuser" to google-sudoers group which gave it the full access to all folder as below
uid=1003(tempuser) gid=1004(tempuser) groups=1004(tempuser),4(adm),30(dip),44(video),46(plugdev),1000(google-sudoers)
After I tried to manually remove tempuser from google-sudoers by this cmd,
deluser tempuser google-sudoers
it did effect for a short period and then it would automatically be restored 'tempuser' to be a member of google-sudoers again by some script from google I guess.
As this violate security rule, Could anyone tell me how I can remove user 'tempuser' from google-sudoers
Thank you very much.