Introducing Sudo for Windows!
devblogs.microsoft.com
external-link
Introducing Sudo for Windows We’re excited to announce the release of Sudo for Windows in Windows 11 Insider Preview Build 26052! Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session. It is an ergonomic and familiar solution for users who want to elevate a command without having to first open a new elevated console.
Another Catgirl
link
fedilink
English
31Y

the most common uses of sudo are: pacman -Syu and apt update && apt upgrade. Windows needs proper CLI for the Microsoft Store or else windows sudo is quite lame.

lazynooblet
link
fedilink
English
51Y

winget install

Chocolaty

NegativeLookBehind
link
fedilink
14
edit-2
1Y

Aww that’s cute, they’re trying to be big boy computers now

@rtxn@lemmy.world
link
fedilink
English
23
edit-2
1Y

FINALLY! It only took them WAY TOO MANY FUCKING YEARS! Good job catching up to literal decades-old practices, guys! How do you like living in the 1990s?

Man, I’ll almost miss having to run a VNC session in parallel with WinRM to click on the UAC popup.

Windows is way ahead of the other operating systems. Not even gonna name them because they’re worthless

Another Catgirl
link
fedilink
English
41Y

they should name it something else so searching for it doesn’t conflict with unix sudo

That’s the point, embrace, extend, extinguish.

Or enshitify perhaps.

This means I no longer have to use my workaround command that loads a new terminal window with admin privileges!

Now, I might not completely loathe using Windows at work.

It took them just under half a century! Good job!

astonishing work!

Introducing… hmmmm…

When are they going to add sudont? You know, the NT version of sudo 😹

JWBananas
link
fedilink
English
181Y

More like SudoExW

Apathy Tree
link
fedilink
English
6
edit-2
1Y

Legit didn’t realize until this news came out that windows didn’t have that same sort of “lawl, yes, I know what I’m doing and accept it might break my shit if I’m wrong” override access… but then I stopped using windows at 7 and only started again with 11 when my Linux beast died. (Temporary and migrating off already!)

I never really used cmd on windows, everything was gui… but I prefer terminal to gui on Linux (idk why, maybe just because it’s different and feels more in control. Also verbose logs are sexy).

You could do it, you just had to run your terminal as administrator.
Just right click the terminal, and “Run As Administrator”.

Command line stuff on Windows (server) is in a pretty decent state now, imo. It’s not perfect but more and more is manageable with powershell. It took some time to really grok that you’re basically always working with objects but I’m a big fan and now quite dislike having to deal with just “text” output when I do something in Linux. (Probably also because I need to do a lot less in it so I’m not used to it as much)

Personally again I also like the naming scheme much more than how it’s done in bash. If I need to do something I don’t know I can search the command by using logical words. E.g. I want to change the properties of a service but don’t know the command by heart I can use

Get-Command service

And I’ll get a list of all commands that contain the word service.

When it comes to admin privileges you simply have the privileges of the account you used to start the session, which has its’ own dangers I suppose since it requires you to maintain account hygiene yourself.

Aatube
link
fedilink
11Y

deleted by creator

Thinker
link
fedilink
4
edit-2
1Y

If you dig the structured output of powershell, you might want to check out Nushell. It’s a cross-platform shell that builds on powershell’s structured data approach but is much less verbose and, in my opinion, more intuitive than both powershell and Posix shells.

Thanks, will check that out.

“Look what they need to mimic a fraction of our power!”

something, something Arch BTW

@leanleft@lemmy.ml
link
fedilink
English
111Y

not the onion

This is fine, but don’t make disabling ads and other tracing hidden under sudo commands that no one is going to guess.

Knowing how windows works sudo isn’t going to mean what we think it means. It’ll be like sudo for some things, and admin sudo for other.

Joël de Bruijn
link
fedilink
19
edit-2
1Y

Old saying still applies if something isnt working:

Linux: be root

Windows: reboot

@arthur@lemmy.zip
link
fedilink
English
181Y

Omniman meme: look what they need just to mimic a fraction of our power!

Create a post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog