Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give administrator privileges to tab #12985

Closed
Fischchen opened this issue Apr 26, 2022 · 6 comments
Closed

Give administrator privileges to tab #12985

Fischchen opened this issue Apr 26, 2022 · 6 comments
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-External For issues that are outside this codebase

Comments

@Fischchen
Copy link

Description of the new feature/enhancement

A possibility to change certain tabs to administrator rights.
Useful when you have to deal with package managers and similar.

Proposed technical implementation details (optional)

An entry for that functionality in the CTL+SHIFT+P menu, which changes the current tab to administrator, or if that's not possible, creates a new one with administrator privileges.

@Fischchen Fischchen added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 26, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 26, 2022
@zadjii-msft
Copy link
Member

This is something you can kinda already do today, but maybe not that conveniently. As of 1.13, you can mark a profile as requiring elevation (admin rights), with elevate:true. You can also use that in a newTab action to open that profile elevated. So you could add something like:

        { "icon": "\uEA18", "command": { "action": "newTab", "elevate": true, "profile": "foo" } },

to open your foo profile as admin. Or just Ctrl+Click on the entry in the dropdown.

However, what you really want is "duplicate the current tab, with admin permission", and that's not tracked right now, I don't think. #10232 is sorta like it, but not exactly what I'm looking for. splitPane has splitMode: duplicate, maybe we need a flag like that for newTab (or just let duplicateTab accept the rest of a NewTerminalArgs

@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal. Issue-Task It's a feature request, but it doesn't really need a major design. and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Apr 27, 2022
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Apr 27, 2022
@zadjii-msft zadjii-msft added this to the Backlog milestone Apr 27, 2022
@zadjii-msft zadjii-msft added this to To do in Process Model Improvements via automation Apr 27, 2022
@zadjii-msft zadjii-msft removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Apr 27, 2022
@ohenryx2

This comment was marked as off-topic.

@zadjii-msft

This comment was marked as off-topic.

@vertigo220
Copy link

Would it be possible to add a Terminal-specific command "sudo" so the user could type that, which would instruct Terminal to duplicate the tab as admin?

@zadjii-msft
Copy link
Member

You know, I might just close this as /dup https://github.com/microsoft/sudo. Honestly, that's just the easiest user experience over all.

(we'll work on shipping that out-of-band from the OS: microsoft/sudo#57)

Copy link
Contributor

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot removed this from the Backlog milestone Jun 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-External For issues that are outside this codebase label Jun 4, 2024
Process Model Improvements automation moved this from To do to Done Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-External For issues that are outside this codebase
Projects
Development

No branches or pull requests

4 participants