microsoft / microsoft/sudo

Unable to use sudo @ ssh "You are not allowed to use sudo"

Open
#121 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.9k
Forks
180
Avg merge
1d 7h
Merged PRs (30d)
2

Description

My user is in the Administrators group. I can use sudo without issues when I'm at the machine.

but when I ssh into my machine I can't use sudo. It just says: You are not allowed to use sudo

Being able to use sudo when accessing the machine over ssh seems like a decent use case.

Fix please!

Edit: just to be clear, i am ssh'ing in to the same user

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the same user locally and over SSH, comparing why sudo authorization differs between the two sessions. Done means a user in the Administrators group can use sudo when connecting to the same machine over SSH; the issue names no files or tests to begin with.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.