Megathread: sudo, runas, mixed elevation of tabs, etc. #1379

Open
opened 2026-01-30 22:24:09 +00:00 by claunia · 0 comments
Owner

Originally created by @hansmbakker on GitHub (May 27, 2019).

Summary of the new feature/enhancement

Current situation:

  • Suppose you are working on something in Powershell, CMD
  • You went into some folder
  • You built some history
  • You find out that you need administrator rights for some command

Currently most console apps (Powershell, CMD) need to start a new session for getting administrator access. This results in a less optimal workflow, because then you lose

  • your current working folder (you need to cd into it again)
  • your command history (the administrator session has its own history)

Proposed technical implementation details (optional)

A bit like sudo, started with a button:

  • Console sessions in terminal start with default permissions
  • Terminal has button with padlock icon / text "upgrade to administrator" in one of the corners
  • When you click the button, the current session is upgraded to a session with admin permissions or downgraded again to normal permissions
  • Session command history and location (working directory) is kept
Originally created by @hansmbakker on GitHub (May 27, 2019). # Summary of the new feature/enhancement Current situation: - Suppose you are working on something in Powershell, CMD - You went into some folder - You built some history - You find out that you need administrator rights for some command Currently most console apps (Powershell, CMD) need to start a new session for getting administrator access. This results in a less optimal workflow, because then you lose - your current working folder (you need to `cd` into it again) - your command history (the administrator session has its own history) # Proposed technical implementation details (optional) A bit like `sudo`, started with a button: - Console sessions in terminal start with default permissions - Terminal has button with padlock icon / text "upgrade to administrator" in one of the corners - When you click the button, the current session is upgraded to a session with admin permissions or downgraded again to normal permissions - Session command history and location (working directory) is kept
claunia added the Issue-FeatureResolution-AnsweredArea-ServerProduct-Meta labels 2026-01-30 22:24:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1379