248
Sudo is coming to Windows 11 (devblogs.microsoft.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]

Hello Windows Insiders, today we are releasing Windows 11 Insider Preview Build 26052 to the Canary and Dev Channels.

Insiders in the Canary Channel will receive Build 26052.1000 while Insiders in the Dev Channel will receive Build

top 50 comments
sorted by: hot top new old
[-] [email protected] 182 points 1 year ago

"Let's give our new command line app the same name as a popular linux command even though it's not the same app and behaves differently. I'm sure our users would appreciate it when they have problem with the app and trying to search the solution later."

[-] [email protected] 69 points 1 year ago

To be consistent with Powershell's command structure, they should call it "Get-Access" or something similar...

[-] [email protected] 69 points 1 year ago

Given the horrible verbosity of PS utils, I'd expect they just abandon subtlety and call it Substitute-User-Do-Operation

load more comments (1 replies)
[-] [email protected] 40 points 1 year ago* (last edited 1 year ago)

"Because we are Microsoft, the company known for giving its products perfectly reasonable and not confusing names"

[-] [email protected] 8 points 1 year ago* (last edited 1 year ago)

Sentinel, Defender (not the AV, lol), Entra. I hear these daily in meetings and don't know what the hell they are. (Not my job)

[-] [email protected] 4 points 1 year ago

Sentinel is MS's SEIM product, defender is likely people referring to their paid av offering, Entra is what they renamed AzureAD recently which is their identity management platform. Not sure why they renamed the last one azureAD was a good name for it.

[-] [email protected] 6 points 1 year ago

Maybe because they were getting tired of hearing from admins frustrated that Azure AD still doesn't have full feature parity with "normal" AD? Now it's clearly a separate product at least.

[-] [email protected] 6 points 1 year ago* (last edited 1 year ago)

I think Google's the worst for this. Examples such as the browser Chrome, when browser chrome has been a thing for a long time. Go, a very common verb and keyword and also now a programming language. Not to be confused with their Go Links, which was a URL shortener. And then there's all the ones they either rebrand or retire and/or replace.

Perhaps they want confusing names because they think other search engines can't handle the ambiguity.

[-] [email protected] 6 points 1 year ago

To be honest, other programming languages aren't named any better

Pascal is just a common name, Rust is a common noun, Java is an island which you cannot find by searching for just its name, Python's a snake, C# is a musical note and C is just a letter.

[-] [email protected] 23 points 1 year ago

afaik they also alias common linux/gnu commands like curl.. but the syntax isnt like curl at all

[-] [email protected] 29 points 1 year ago

I definitely spent a frustrated 45 minutes trying to figure out why curl wasn't working when it was supposed to be supported in PowerShell.

then I hit tab a couple of times and noticed curl.exe was an option, that works exactly the same as I had expected with original syntax.

they do this to a lot of things though a lot of common commands end up being an alias to a powershell command with a specific option set that doesn't always line up

[-] [email protected] 11 points 1 year ago

I wonder which sudo Bing will default to find ๐Ÿค”

[-] [email protected] 7 points 1 year ago

Phil Collins, probably.

load more comments (5 replies)
[-] [email protected] 74 points 1 year ago* (last edited 1 year ago)
load more comments (2 replies)
[-] [email protected] 66 points 1 year ago

Windows is not in sudoers file. This incident will be reported.

load more comments (1 replies)
[-] [email protected] 43 points 1 year ago

I bet you not even sudo could remove edge. edge is like the breathing lungs and thinking brain and balls of computer

[-] [email protected] 31 points 1 year ago

HTTP is stored in the balls

[-] [email protected] 26 points 1 year ago* (last edited 1 year ago)

"This action is forbidden. The incident has been reported."

And then MS sends goons to your house to break your legs

[-] [email protected] 7 points 1 year ago

That's an unpalatable response - instead you're sentenced to 10 hours of Browser Reeducation classes

load more comments (4 replies)
[-] [email protected] 39 points 1 year ago

And, knowing Windows, won't let you do as much as a real sudo would anyway. There are so many f-ing things that even Admin is not allowed to do on a Windows box, it is simply annoying. "Oh no, you cannot remove Edge! This would threaten the stability of the universe!"

[-] [email protected] 30 points 1 year ago

Do you remember when Microsoft tried to patent sudo?

Pepperidge farm remembers.

load more comments (1 replies)
[-] [email protected] 28 points 1 year ago

It is an ergonomic and familiar solution for users who want to elevate a command without having to first open a new elevated console.

Yeah Microsoft, how exactly is it familiar for Windows users? ๐Ÿ˜œ

[-] [email protected] 22 points 1 year ago

Sudo rm -rf c: --no-preserve-root

[-] [email protected] 23 points 1 year ago

More like sudo rm -rf C: --no-preserve-C-drive

load more comments (1 replies)
[-] [email protected] 14 points 1 year ago

This has been needed since Windows XP SP2.

Glad to see they've finally started doing their backlog tickets.

[-] [email protected] 12 points 1 year ago

Honestly, it's hardly newsworthy given how sudo was a thing in windows for quite a while now. I use it pretty often, especially sudo pwsh for elevated shells.

[-] [email protected] 12 points 1 year ago

alias sudo=runas

Wow, so exciting.

[-] [email protected] 11 points 1 year ago

Embrace, extend, extinguish. Fucking microcrap

[-] [email protected] 21 points 1 year ago

...what?

I'm always aboard the Microsoft hate train, but I don't see how them adding sudo fits within EEE. Here's an excerpt from microsoft/sudo on Github:

Obviously, everything about permissions and the command line experience is different between Windows and Linux. This project is not a fork of the Linux sudo project, nor is it a port of the Linux sudo project. Instead, Sudo for Windows is a Windows-specific implementation of the sudo concept.

As the two are entirely different applications, you'll find that certain elements of the Linux sudo experience are not present in Sudo for Windows, and vice versa.

Despite sharing a name and features, they're for two completely separate platforms and offer no interoperability. If MS decided to release their version of sudo for Linux, maybe we could talk about EEE. For now, all they've done is implement a useful tool from another platform into theirs, and that's a (rare) positive for MS, even if this feature should have existed like 30 years ago.

[-] [email protected] 14 points 1 year ago

Will this not dilute search results related to sudo? It's minor but I think could be considered EEE.

[-] [email protected] 20 points 1 year ago* (last edited 1 year ago)

Sounds like a bit of a desperate reach to attach the EEE label to this.

load more comments (3 replies)
[-] [email protected] 8 points 1 year ago

I can definitely see this argument, but I strongly suspect the inverse will be true; finding results for MS sudo which aren't about Linux might be difficult.

After all, sudo has existed for a long time. Also, I assume over 90% of people who use Linux uses or has used sudo, whereas a tiny fraction of Windows users will ever use MS sudo.

load more comments (1 replies)
[-] [email protected] 8 points 1 year ago

Linux subsystem for windows... Making it easier to stay off Linux, adding similar elements to Linux to appeal to Linux users.

It's 100% per of EEE, subtle as not to make users like you freak out.
MS won't do anything that doesn't help them make more money / more users

[-] [email protected] 12 points 1 year ago

Linux subsystem for windows

If you wanted to talk about EEE regarding Linux subsystem for Windows, you probably should specify that. I share your misgivings about WSL, but this thread is about sudo for Windows which is another thing entirely.

Making it easier to stay off Linux, adding similar elements to Linux to appeal to Linux users.

I have a hard time imagining Linux users switching to Windows because of a feature Linux has had since its inception. Of course MS won't do anything that doesn't increase their profits, that's what corporations do. Implementing "new" features is a way of attracting more users, sure, but I still fail to see any way in which sudo for Windows fits the EEE scheme. "Embrace, extend, extinguish" refers to specific predatory business practices, it's not shorthand for "everything I dislike about capitalism and the tech industry" and using it as such kinda dilutes its original meaning.

load more comments (5 replies)
[-] [email protected] 8 points 1 year ago

I been using gsudo for quite sometime, the default way to leverage privaliges in Windows is cancer, the whole shell is tbh.

[-] [email protected] 8 points 1 year ago

Its been a thing for a while on windows 10 as well https://github.com/gerardog/gsudo

[-] [email protected] 8 points 1 year ago
[-] [email protected] 5 points 1 year ago

ah finally our imposters are in senior positions

[-] [email protected] 5 points 1 year ago

Do ssh-copy-id next please.

[-] [email protected] 4 points 1 year ago
load more comments (1 replies)
load more comments
view more: next โ€บ
this post was submitted on 08 Feb 2024
248 points (100.0% liked)

Technology

73233 readers
112 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS