Score:0

Same user on GCS VM has sudo when SSH connecting but not by chrome remote desktop

kr flag

I set up a Debian VM on Google Cloud Services. When I connect to the terminal via SSH from the GCS VM interface and run sudo ls as the user user@project, I get:

User user may run the following commands on project:
    (ALL : ALL) NOPASSWD: ALL

However, when I connect to the same VM via Chrome Remote Desktop service using this tutorial and run the same command as the same user (user@project), I get

Sorry, user user is not allowed to execute 'list' as user on project.us-west1-b.c.project-351122.internal.

Why am I sudo when connect via SSH but not by Chrome Remote Desktop despite being logged in as the same user?

John Hanley avatar
cn flag
Login as each user. You will find that the home directory is different because the Console GUI uses the IAM user name whereas SSH uses the same user name but with a different spelling.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.