microsoft / microsoft/sudo

[Feature request]Add a --user/-u option to run as an administrator account

Open
#127 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description of the new feature / enhancement

Hi, we have two users on Windows : a standard user and an admin user.

Can you please add a --user (-u) option to be able to run a command as the admin user ?

Scenario when this would be used?

My current user is not allowed to run sudo :

PS C:\> sudo cmd
You are not allowed to run sudo
PS C:\>
Supporting information

You can get inspired from gerardog gsudo.

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

The issue names no files, tests, or entry points. Start by reviewing the repository's existing command-line options and Windows execution flow, then determine how --user/-u should select an administrator account. Done means the described standard-user scenario can run a command under the selected admin account, with behavior defined for invalid or unavailable accounts.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.