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

Please add -b or shell job as an argument. #37

Open
luke-beep opened this issue Feb 9, 2024 · 1 comment
Open

Please add -b or shell job as an argument. #37

luke-beep opened this issue Feb 9, 2024 · 1 comment
Labels
Issue-Task It's a feature request, but it doesn't really need a major design.
Milestone

Comments

@luke-beep
Copy link

luke-beep commented Feb 9, 2024

Description of the new feature / enhancement

The original Unix sudo command line utility supports a -b/-background option, which tells sudo to run the given command in the background.

Scenario when this would be used?

Simplify Task Delegation with Sudo's -b Option on Windows.

Example: In the routine of a system administrator, tasks like software updates and network adjustments are common. With the -b option in sudo, these tasks become more "streamlined"; easier to perform without the visual clutter. For instance, executing sudo -b winget upgrade --all allows for background updates of the system's software, eliminating the need for visual clutter and saving valuable time.

By leveraging the -b/-background option with sudo, administrators & casuals can streamline task delegation and improve efficiency in system management. It'd also be very useful to me <3

Supporting information

  • Sudo Manual -> Sudo
@luke-beep luke-beep added Issue-Feature New feature or request. Complex enough to require planning and actual budgeted, scheduled work. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 9, 2024
@luke-beep luke-beep changed the title Please add -d or shell job as an argument. Please add -b or shell job as an argument. Feb 9, 2024
@zadjii-msft
Copy link
Member

This seems like it would be super easy, at least on it's face. Currently, sudo spawns an elevated sudo (which gets a hidden, elevated console). Then we have the admin sudo detach from its console, and attach to the original one instead.

If we just... didn't do that detach/reattach dance, that would probably just work? The target would be connected to a hidden console window. I'm betting this should be easy.

I'd wanna double check

  • how this interacts with piping to files
  • if a console app run under sudo -b could then ShowWindow(GetConsoleWindow()) to show the hidden console.

@joadoumie joadoumie added this to the Backlog milestone Feb 28, 2024
@joadoumie joadoumie removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Feb 28, 2024
@zadjii-msft zadjii-msft added Issue-Task It's a feature request, but it doesn't really need a major design. and removed Issue-Feature New feature or request. Complex enough to require planning and actual budgeted, scheduled work. labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Task It's a feature request, but it doesn't really need a major design.
Projects
None yet
Development

No branches or pull requests

3 participants