microsoft / microsoft/sudo

Feature request: Support for logging in as a specific user (not just as "admin")

Open
#3 3 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Yep, pretty much what it says on the tin. Currently, sudo just runs the target app as the admin half of the admin user's split token (which may or may not be the current user). We should support a -u flag to allow the user to specify a different user to run as.

### Tasks
- [ ] #19
- [ ] Support running as System
- [ ] Support running as TrustedInstaller

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 tracing the current sudo path that runs the target app as the admin half of the split token. Review task #19 and the remaining task-list entries to define the user-selection cases, then verify that -u supports a specified user, System, and TrustedInstaller.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.