this post was submitted on 08 Feb 2024
235 points (95.0% liked)

Technology

57453 readers
4164 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 content.
  3. Be excellent to each another!
  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, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
235
Sudo is coming to Windows 11 (devblogs.microsoft.com)
submitted 6 months ago* (last edited 6 months 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 controversial new old
[–] [email protected] 182 points 6 months ago (9 children)

"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] 71 points 6 months ago (2 children)

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

[–] [email protected] 70 points 6 months ago (1 children)

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] 35 points 6 months ago (2 children)

Can we truncate it to Get-Ass?

[–] [email protected] 20 points 6 months ago* (last edited 6 months ago) (1 children)

> Set-Alias -Name Get-Ass -Value Get-Access
> Get-Ass
Get-Access : Access is denied. (Exception from HRESULT: 0x00000000 (E_ACCESSDENIED))

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 40 points 6 months ago* (last edited 6 months ago) (2 children)

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

[–] [email protected] 8 points 6 months ago* (last edited 6 months ago) (2 children)

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)

load more comments (2 replies)
[–] [email protected] 5 points 6 months ago* (last edited 6 months ago) (1 children)

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 6 months 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 6 months ago (1 children)

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

[–] [email protected] 29 points 6 months 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 6 months ago (1 children)

I wonder which sudo Bing will default to find 🤔

[–] [email protected] 7 points 6 months ago

Phil Collins, probably.

load more comments (5 replies)
[–] [email protected] 74 points 6 months ago* (last edited 6 months ago) (2 children)
load more comments (2 replies)
[–] [email protected] 67 points 6 months ago (1 children)

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

load more comments (1 replies)
[–] [email protected] 48 points 6 months ago (1 children)
[–] [email protected] 33 points 6 months ago

They are tired of right clicking Command Prompt to "Run as Administrator". They've been doing it for decades, they can have one tiny piece of QoL improvement.

[–] [email protected] 41 points 6 months ago (6 children)

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 6 months ago

HTTP is stored in the balls

[–] [email protected] 24 points 6 months ago* (last edited 6 months ago) (1 children)

"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 6 months ago

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

load more comments (4 replies)
[–] [email protected] 37 points 6 months ago (1 children)

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 6 months ago (1 children)

Do you remember when Microsoft tried to patent sudo?

Pepperidge farm remembers.

[–] [email protected] 4 points 6 months ago

Sounds exactly like the common graphical implementations of sudo

[–] [email protected] 27 points 6 months 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] 25 points 6 months ago* (last edited 6 months ago) (2 children)

Finally. Although, I bet it's going to be one of these looongass PS OO commands, with an alias tied to it.

Probably Escalate-RegularUserPrivelige and smack a mandatory -Confirm argument in there as well, just to be annoying.

[–] [email protected] 17 points 6 months ago (1 children)

Although you have to admire that PowerShell at least attempts to define a common set of verbs and vocabulary.

load more comments (1 replies)
[–] [email protected] 15 points 6 months ago (1 children)

The trick to powershell is to make incredibly liberal use of tab completion to speed yourself up. Or make aliases for commands you use really often.

[–] [email protected] 7 points 6 months ago

Yeah, I get that it can be a pain to type long commands out the first time, but if you're using a terminal or an editor without tab completion in 2024 then you've chosen to do things the hard way.

[–] [email protected] 19 points 6 months ago (1 children)

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

[–] [email protected] 22 points 6 months ago (1 children)

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

load more comments (1 replies)
[–] [email protected] 14 points 6 months ago

This has been needed since Windows XP SP2.

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

[–] [email protected] 12 points 6 months ago

alias sudo=runas

Wow, so exciting.

[–] [email protected] 11 points 6 months 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] 9 points 6 months ago

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

[–] [email protected] 8 points 6 months ago
[–] [email protected] 8 points 6 months 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] 6 points 6 months ago

ah finally our imposters are in senior positions

[–] [email protected] 5 points 6 months ago (2 children)

Do ssh-copy-id next please.

load more comments (2 replies)
load more comments
view more: next ›