Sudo is coming to windows

Source: https://blogs.windows.com/windows-insider/2024/02/08/announcing-windows-11-insider-preview-build-26052-canary-and-dev-channels/

1.1k points · 136 comments · view on lemmy.world

136 Comments

TWeaK@lemm.ee · 210 pts · 2y (9 replies)

sudo stop telemetry

d_k_bo@feddit.de · 120 pts · 2y (1 reply)

Can't wait for SystemD for Windows

sudo systemctl disable telemetry
XTornado@lemmy.ml · 16 pts · 2y

I honestly want that. I much prefer managing services with systemd.

lawrence@lemmy.world · 70 pts · 2y (4 replies)

no

PrefersAwkward@lemmy.world · 116 pts · 2y (3 replies)

And this incident has been reported. As have all your activities, searches, sites, and keystrokes

Zink@programming.dev · 28 pts · 2y (1 reply)

They need to end the “this incident has been reported” line with an animated laughing Bill Gates saying “ah ah aaaah, you didn’t say the magic word!”

wingsfortheirsmiles@feddit.uk · 7 pts · 2y

Wayne Knight still underrated

redcalcium@lemmy.institute · 21 pts · 2y

Big bro, no!!!

UraniumBlazer@lemm.ee · 28 pts · 2y

ERROR: Fuck you! What do you think, we're Linux? How will we earn them monies without your data?

pooconquest@links.hackliberty.org · -39 pts · 2y
[ removed ]
fkn@lemmy.world · 141 pts · 2y (19 replies)

Win12 confirmed as a Linux mint cinnamon derivative distro.

Freesoftwareenjoyer@lemmy.world · 67 pts · 2y (3 replies)

No, that would be too soon. It took them over 20 years to make a package manager, 15 years to add tabs to Windows Explorer. Maybe in 10-20 years they will do it.

andrew_bidlaw@sh.itjust.works · 12 pts · 2y (1 reply)

package manager

They've got winget recently so they get closer than you think.

https://github.com/microsoft/winget-cli

fkn@lemmy.world · 4 pts · 2y

Win12 confirmed 2044 release date.

KpntAutismus@lemmy.world · 24 pts · 2y (2 replies)

"linux mint, but it sells your data"

i know microsft isn't really selling it, but they're making money like they do.

GladiusB@lemmy.world · 3 pts · 2y (1 reply)

And slower and never fuckin updates...

SGHFan@lemdro.id · 3 pts · 2y

Also features Snap?

ad_on_is@lemmy.world · 19 pts · 2y (2 replies)

I think mint is too Linuxy for win...they might go with Ubuntu and embrace snaps

darcy@sh.itjust.works · 7 pts · 2y (1 reply)

ironically, cinnamon was made to be familiar to windows users (im pretty sure)

captain_aggravated@sh.itjust.works · 5 pts · 2y

Cinnamon is one of four DEs whose reason for being is to be Not Gnome 3. Mate, a fork of Gnome 2, Cinnamon, a fork of Gnome 3 that isn't dumb and bad, Unity, from Ubuntu's "Not Developed Here" period, and more recently Cosmic or whatever Pop!_OS is calling their thing.

AVincentInSpace@pawb.social · 17 pts · 2y

I thought Microsoft was copying KDE

eager_eagle@lemmy.world · 1 pts · 2y
[ removed ]
tdawg@lemmy.world · -1 pts · 2y

Sorry, I'm not a fan of mint cinnamon

pooconquest@links.hackliberty.org · -19 pts · 2y
[ removed ]
pooconquest@links.hackliberty.org · -21 pts · 2y (1 reply)
[ removed ]
PeterPoopshit@lemmy.world · 0 pts · 2y
[ removed ]
pooconquest@links.hackliberty.org · -22 pts · 2y (2 replies)
[ removed ]
AVincentInSpace@pawb.social · 10 pts · 2y (1 reply)

Can you please not express your political views by putting scat porn in my comment section? Thanks

darcy@sh.itjust.works · 2 pts · 2y

wtf.

mlg@lemmy.world · 91 pts · 2y (16 replies)

Doesn't really make sense in the context of windows tbh

sudo = "superuser do"

They should have made it NT-ASdo for "NT AUTHORITY\SYSTEM do"

Except it should actually be a powershell module so you have to type out the whole thing as NT-AuthoritySystem-Do

^/s^

DmMacniel@feddit.de · 15 pts · 2y (5 replies)

But it needs to be a verb like get set do

Saik0Shinigami@lemmy.saik0.com · 19 pts · 2y (4 replies)

Do-As "NT Authority/System"

Have to quote it in too... since there's a space.

laurelraven@lemmy.blahaj.zone · 15 pts · 2y (2 replies)

Probably something more like "Invoke-Command -AsAdmin"

Which would be aliased to sudo

groet@feddit.de · 2 pts · 2y (1 reply)

That's what I wxpect. But with one more layer. In the end it's going to be system32/elevator.exe which is called by Invoke-Elevation in ps which is aliased to sudo.

It's supposed to be available in cmd and batch so it must be callable directly

laurelraven@lemmy.blahaj.zone · 1 pts · 2y

I was more postulating what they probably would do if it were implemented directly in PowerShell

But, as it turns out, it's just sudo.exe in the command path

rickyrigatoni@lemm.ee · 8 pts · 2y

justfuckingdoitbeforeireplaceyouwithtinycore

Alexstarfire@lemmy.world · 13 pts · 2y (7 replies)

Wait, is sudo pronounced su du then?

Jeom@lemmy.world · 22 pts · 2y (2 replies)

yeah but it sounds dumb so im never gonna say it correctly

Chriswild@lemmy.world · 11 pts · 2y

Sounds like Scooby Doo's lost cousin Sue Doo

Floshie@lemmy.blahaj.zone · 1 pts · 2y

Gonna pronounce it all the way like a french for the rest of my life

TheOctonaut@mander.xyz · 17 pts · 2y (3 replies)

Always has been

NeatNit@discuss.tchncs.de · 3 pts · 2y (2 replies)

no, never has been. it's pronounced like pseudo.

callyral@pawb.social · 7 pts · 2y (1 reply)

i pronounce "su du" and pseudo the same way

NeatNit@discuss.tchncs.de · 4 pts · 2y

you anarchist!

possiblylinux127@lemmy.zip · 7 pts · 2y

You have a /s but I wouldn't be surprised if it had a really long syntax

uis@lemmy.world · 3 pts · 2y

ntassdo

Evkob@lemmy.ca · 83 pts · 2y (9 replies)

>new

>"sudo was initially released: circa 1980"

Random sidenote, today I learned that not only does sudo have a logo, it's in direct reference to a classic xkcd strip.

bastian_5@sh.itjust.works · 26 pts · 2y (1 reply)

They're also aknowledging that it already existed... It's new to windows. I don't like them either but you don't need to actively look for shit to be upset at them over.

Evkob@lemmy.ca · 0 pts · 2y

I was poking fun at MS for promoting a new feature which has existed on other platforms since the early 80s and should have had a Windows equivalent ages ago.

I'm curious, what part of my comment makes you think I'm upset? I genuinely don't know how you came to that conclusion, and if I do come off as upset for making a joke I'd like to avoid that in the future.

x4740N@lemmy.world · 21 pts · 2y (2 replies)

The sandwich with a face makes me feel uncomfortable for some reason

Evkob@lemmy.ca · 12 pts · 2y

This sandwich is definitely the type of sandwich to eat humans as revenge for its kind.

Metz@lemmy.world · 4 pts · 2y

it has that creepy uncle look going

NotSteve_@lemmy.ca · 10 pts · 2y

Kinda wish I didn't know it had a logo. Those eyes are staring into my soul

cupcakezealot@lemmy.blahaj.zone · 5 pts · 2y (2 replies)

today I learned that not only does sudo have a logo,** it’s in direct reference to a classic xkcd strip**.

this is definitely not directed at you but hearing xkcd described as classic makes me feel old :)

Evkob@lemmy.ca · 6 pts · 2y (1 reply)

Oh I didn't mean to classify xkcd itself as "classic"! It's just that #149 is probably one of Randall Munroe's most iconic comics and one of the first ones that come to my mind when I think of xkcd.

I must say though, it's been around for almost two decades, being successful and constantly relevant in nerdy online spaces. If there is such a thing as a classic webcomic, xkcd should probably qualify.

cupcakezealot@lemmy.blahaj.zone · 2 pts · 2y

haha it's ok i just remember laughing over it with my friend when i just left uni in like 2003 or sometime like that :)

laurelraven@lemmy.blahaj.zone · 79 pts · 2y (7 replies)

Oh thank goodness, having to spawn a full admin terminal every time you need that is such a pita

bmarinov@lemmy.world · 2 pts · 2y (2 replies)

And there is absolutely no way, that I could find, to create or pin a shortcut to eg WinTerm, which would launch it as admin.

laurelraven@lemmy.blahaj.zone · 9 pts · 2y (1 reply)

Actually, that's an easy one to workaround: hold down Ctrl+shift when you click on it (or any pinned application) and it will launch it elevated. Makes that part feel so much simpler and straightforward when I found that out.

I_Clean_Here@lemmy.world · 2 pts · 2y

Oh dang

vox@sopuli.xyz · 1 pts · 2y (3 replies)

gsudo

laurelraven@lemmy.blahaj.zone · 1 pts · 2y (2 replies)

Yeah, I'm sure my IT security would love me putting that on the servers I manage

Though, apparently, this is not going to be added to Server anyway...boo

vox@sopuli.xyz · 1 pts · 2y (1 reply)

i mean it's open source and has secure defaults so ¯_(ツ)_/¯...

laurelraven@lemmy.blahaj.zone · 1 pts · 2y

I'm going to guess you don't have to work with an IT security office...

redcalcium@lemmy.institute · 51 pts · 2y (3 replies)

Soon, some linux newbies would search for how to do something with sudo and spent an hour scratching their head trying to figure out why the command not working, only to realize they copy pasted sudo command for windows instead.

Hiro8811@lemmy.world · 35 pts · 2y (2 replies)

Or the other way around

pineapplelover@lemm.ee · 11 pts · 2y (1 reply)

Most likely the other way around. They'll see the guide mention Windows and bail out because it's proprietary

Hiro8811@lemmy.world · 17 pts · 2y

I meant that window users will see Linux commands since Linux has been around for much much much longer and window users will get confused. Which is good, we need people to start hating Windows so they'll consider Linux

Matriks404@lemmy.world · 42 pts · 2y (24 replies)

I am pretty sure it won't work 100% like sudo on Unix-likes, so why didn't they come up with different name, like elevate? This command being sudo will only confuse users.

Freesoftwareenjoyer@lemmy.world · 37 pts · 2y (9 replies)

I think they want to compete with GNU/Linux and attract its users. They made WSL for probably the same reason. They even have a terminal now that almost doesn't suck.

possiblylinux127@lemmy.zip · 10 pts · 2y (7 replies)

Except it does..... (Its really slow and clunky)

SauceFlexr@lemmy.world · 5 pts · 2y (1 reply)

Windows terminal is now my preferred terminal. I use it on a daily basis at work, and adding in WSL just makes things easier in general for Windows. My google search history is no longer Powershell eqicalent for X in linux.

possiblylinux127@lemmy.zip · 3 pts · 2y

Well I'm glad it works for you. Also I don't think it runs under wine so you are stuck on Windows.

Freesoftwareenjoyer@lemmy.world · 2 pts · 2y (4 replies)

Yeah, when I used it, every command had like a second of delay. It was also buggy. But it has tabs and you can even split the window into multiple panes. So big improvement over cmd.

BenPranklin@lemmy.world · 1 pts · 2y (3 replies)

How long ago did you try it? I gave the first iteration of wsl a chance and had the same experience, it was super slow especially for things like ls. Its a lot better since wsl2. Probably 90% or more the performance of bare metal install of linux

Freesoftwareenjoyer@lemmy.world · 1 pts · 2y (2 replies)

I used it last year on Windows 10 (I was forced to use Windows by my employer). I didn't use it with WSL, just with Git Bash.

BenPranklin@lemmy.world · 1 pts · 2y (1 reply)

Also forced to use windows for work. That wasn't the windows terminal program being slow, that was git bash.

Freesoftwareenjoyer@lemmy.world · 1 pts · 2y

Ah, interesting. I didn't realise that it was slow.

darcy@sh.itjust.works · 1 pts · 2y

wsl is good for when ure forced to use windows

ILikeBoobies@lemmy.ca · 23 pts · 2y (8 replies)

When searching commands now Windows garbage comes up

peopleproblems@lemmy.world · 13 pts · 2y (6 replies)

So it's more to poison search results to stifle Linux adoption

PeterPoopshit@lemmy.world · 4 pts · 2y (5 replies)

That's probably why they named the Xbox One the Xbox One all those years ago. Whenever people googled how to mod an Xbox One to play pirated games, they would keep finding original Xbox crap instead since everyone up until that point called it "Xbox 1".

JTskulk@lemmy.world · 4 pts · 2y (4 replies)

In typical Microsoft nonsensical naming schemes, they had nowhere to go after Xbox 360.

ILikeBoobies@lemmy.ca · 2 pts · 2y (1 reply)

They didn’t want to say xbox 2 because it was less than PS3

But Nintendo had no problems with jumping to 64

JTskulk@lemmy.world · 1 pts · 2y

This is the real reason, they were afraid consumers would think "3 is bigger than 2 so the Sony one must be better".

I think Nintendo gets a pass because they never used numbers anyway: NES -> SNES -> 64 -> gamecube -> wii -> switch. The 64 of course was about the hardware technology and not the generation or anything.

PeterPoopshit@lemmy.world · 2 pts · 2y (1 reply)

I gave up on paying attention to Xboxes when they started calling them such stupid fucking shit like "Xbox x series sx". Now you have to be really familiar with Xbox lore to even figure out what the latest current one is.

JTskulk@lemmy.world · 1 pts · 2y

I pre-emptively stopped when I switched to PC gaming in like 1996 lol

darcy@sh.itjust.works · 2 pts · 2y

would you like to seach Edge™ with our Microsoft AI™?

eatham@aussie.zone · 15 pts · 2y (1 reply)

Whenever a windows user Google's how to do something with it the Linux thing will show up. Microsoft might need to rethink this

Holzkohlen@feddit.de · 2 pts · 2y

Just block all search results related to linux in bing. There fixed.

sysadmin420@lemmy.world · 2 pts · 2y (2 replies)

cd c:\folder

ls Command not found

Every Fn Time , now they add sudo?

OfficerBribe@lemm.ee · 2 pts · 2y (1 reply)

Ditch CMD and use PowerShell like a civilised person. ls is a valid built-in alias to Get-ChildItem. cd itself is an alias to Set-Location.

sysadmin420@lemmy.world · 1 pts · 2y

I just run Linux directly and skip windows for almost everything.

w2tpmf@lemmy.world · 27 pts · 2y (4 replies)

We already had this function, they just made sudo into an alias of:

runas /user:Administrator
r4indeer@discuss.tchncs.de · 21 pts · 2y (3 replies)

No, that required the local admin account to have a password, which is usually unset (and the account is also locked). This uses the UAC system instead.

Trainguyrom@reddthat.com · 10 pts · 2y

runas will run as whatever account you specify, so you can absolutely use it to run something as a domain admin account

SuspiciousPumpkin421@lemmy.world · 9 pts · 2y

I think they meant you could use any account that is an admin with runas to elevate.

vox@sopuli.xyz · 2 pts · 2y

then, use gsudo. it uses uac and even has convinience features from linux sudo like maintaing an open session for passwordless elevation for a couple of minutes after the password is entered.

mmababes@lemmy.world · 26 pts · 2y (6 replies)

Some quotes from Steve Jobs about Microsoft:

  • The only problem with Microsoft is they just have no taste. They have absolutely no taste. And I don't mean that in a small way, I mean that in a big way, in the sense that they don't think of original ideas, and they don't bring much culture into their products. --Triumph of the Nerds (1996)
  • I am saddened, not by Microsoft's success — I have no problem with their success. They've earned their success, for the most part. I have a problem with the fact that they just make really third-rate products. --Triumph of the Nerds (1996)
  • I wish developing great products was as easy as writing a check. If that was the case, Microsoft would have great products.
AllonzeeLV@lemmy.world · 45 pts · 2y (5 replies)

You made me angry with myself for agreeing with Steve Jobs.

BautAufWasEuchAufbaut@lemmy.blahaj.zone · 37 pts · 2y (1 reply)

maybe he got those quotes from Wozniak, too /j

AllonzeeLV@lemmy.world · 2 pts · 2y
[ removed ]
djsoren19@yiffit.net · 13 pts · 2y (2 replies)

Don't worry, all the quotes work for Apple too. You can always hate both.

AllonzeeLV@lemmy.world · 8 pts · 2y (1 reply)

Nah, senile grandad needs a phone too.

Simple, overpriced tech for simple people who don't prioritize tech or value.

I hate Steve Jobs specifically, his proud lack of charity, his overt need for the credit of talented people despite being nothing more than a marketer, and notably letting his proven child live on welfare for years as he was worth at the time millions. Most pos market capitalist oligarchs join Jobs in rejecting charity (commensurate with their wealth) and community, but even most of them somehow manage to play human when it comes to paying for their own children to eat without complaint, which made Jobs a particularly awful human being, even among our sociopath owners, which takes a lot of talent in being awful.

mlanger@mastodon.world · -2 pts · 2y
[ removed ]
lolcatnip@reddthat.com · 22 pts · 2y (1 reply)

Sadly it doesn't seem to handle the one use case I really wanted it to handle, which is running elevated commands through a terminal in a VSCode tunneling session without also having an RDP session open for me to click the confirmation dialog.

possiblylinux127@lemmy.zip · 0 pts · 2y

You should theoretically be able to login as a admin. I've never used VScode so I have no idea what your setup looks like.

joyjoy@lemm.ee · 15 pts · 2y (6 replies)

Is it a wrapper around runas?

elvith@feddit.de · 10 pts · 2y (2 replies)

Maybe, but knowing the ease of sudo, I really hate using runas. Most of the time, I just want plain old admin privileges. Mostly I don't care whether I can impersonate another user with this.

AVincentInSpace@pawb.social · 5 pts · 2y

Given what MS did to powershell to make *nix commands like ls work (i.e. make them plain aliases to the equivalent powershell commands without any attempt to convert flags) I wouldn't get my hopes up. (Nothing could have prepared me for the disappointment of typing ls -l and getting an error.)

I hate to be a pessimist but $20 says they're just making it so they can technically claim that Windows supports commands Linux users are used to and therefore that Linux users should have no trouble in a Windows environment.

h0rnman@lemmy.world · 3 pts · 2y

runas is trash, to be honest. I've been waiting 30 years for an OS-native tool that allows me to delegate specific commands for specific users to run with specific parameters as admin. Something I can do with sudo (well, sudoers) in 5 minutes is outright impossible on Windows. I'd like to believe that Microsoft will implement this part of sudo, but I'm not gonna hold my breath

OfficerBribe@lemm.ee · 1 pts · 2y

runas.exe cannot start elevated process. Exceptions seem to be MMC snap-ins so you can launch something like lusrmgr.msc or devmgmt.msc with admin account and you will have admin rights.

roon@lemmy.ml · 1 pts · 2y

From the page linked in that article

dan@upvote.au · 1 pts · 2y
[ removed ]
mariusafa@lemmy.sdf.org · 14 pts · 2y

This is the most non-credible real shit i've seen in a while. Sudo for windows? What is next? The whole gnutils native on windows? If they do that I'm going to be happy because i could play games that aren't suported on linux but at the same time scraping all the big pile of shit that windows is packaged with.

Like neutered Windows, like droping a huge nuke into Sytstem32 directory and killing every shit.

No more you don have permisions to do this when i'm the only user, plus administrator. Current state it feels like microsoft is lending my computer to me or something.

Well tbh Mac OS is having the same aproach. I've used old macos and nowadays all the things someone wants on an os are hidden in maze like preferences windows and whatever bullshit.

Ascend910@lemmy.ml · 12 pts · 2y

Windows is just the expensive knock off at this point XD

smileyhead@discuss.tchncs.de · 12 pts · 2y (5 replies)

sudo pacman -R sudo

sebsch@discuss.tchncs.de · 7 pts · 2y (4 replies)

sudo pacman -R pacman

kionite231@lemmy.ca · 1 pts · 2y (3 replies)

Wait? Is it possible to remove pacman??

CriticalMiss@lemmy.world · 6 pts · 2y

Yes, you will then need an Arch ISO to pacstrap it again, but it is possible. Arch is not a system that limits your freedom.

sebsch@discuss.tchncs.de · 1 pts · 2y

It's a component like everything else. Sure you can remove that

bdonvr@thelemmy.club · 1 pts · 2y

You can also install Apt

kureta@lemmy.ml · 11 pts · 2y

At this point just release a new Linux distro and call it "Windows for Developers" or something.

cupcakezealot@lemmy.blahaj.zone · 10 pts · 2y (6 replies)

scoop install sudo

:)

Lord_ToRA@lemmy.world · 2 pts · 2y (5 replies)
[ removed ]
cupcakezealot@lemmy.blahaj.zone · 5 pts · 2y (3 replies)

i have both but i do prefer scoop over chocolatey since it's a bit simpler to use. it's also more like homebrew.

winget-ui will pull from chocolatey and scoop and winget, though.

roon@lemmy.ml · 1 pts · 2y (2 replies)

If only it supported ms-store updates as well

cupcakezealot@lemmy.blahaj.zone · 1 pts · 2y (1 reply)

doesn't winget support msstore updates anyway?

oh, or do you mean if scoop supported msstore?

roon@lemmy.ml · 1 pts · 2y

I've seen ms store options here too but I've never seen winget update existing ms store apps even though I pass the --all flag

possiblylinux127@lemmy.zip · 2 pts · 2y

Way more stable and reliable. It just doesn't install programs normally (installed programs won't show up under add and remove)

frozen@lemmy.frozeninferno.xyz · 10 pts · 2y

I've been using gsudo for that for a while, but it's nice to have native options.

Granixo@feddit.cl · 8 pts · 2y

hperrin@lemmy.world · 8 pts · 2y

Didn’t Microsoft try to patent sudo a few years back?

poopsmith@lemmy.world · 8 pts · 2y (1 reply)

⚠️ Warning:

There may be an offensive/gross picture posted in this thread. It was deleted from the thread a while ago but I'm still receiving reports for it. Your instance might not be correctly syncing deletions with the LW instance if you're still seeing the comment. Sorry in advance if you see it.

Allero@lemmy.today · 2 pts · 2y

Thanks for the work and heads up!

randomaside@lemmy.dbzer0.com · 6 pts · 2y

Sooner or later . . . https://archiveos.org/lindows/

QuazarOmega@lemy.lol · 6 pts · 2y

This changes EVERYTHING

BigTrout75@lemmy.world · 5 pts · 2y (1 reply)

If my crystal ball is correct, Windows will be Linux in 10 years.

Allero@lemmy.today · 1 pts · 2y

Already on their way

vox@sopuli.xyz · 2 pts · 2y

gsudo

ordellrb@lemmy.world · 1 pts · 2y (3 replies)

Powershell is Missing a Texteditor for my, is there a way to get something like nano

cupcakezealot@lemmy.blahaj.zone · 3 pts · 2y (2 replies)

scoop install nano ☺️

ordellrb@lemmy.world · 1 pts · 2y (1 reply)

Will try, thanks

cupcakezealot@lemmy.blahaj.zone · 2 pts · 2y

you can also install vim with scoop install vim if you're masochistic

cupcakezealot@lemmy.blahaj.zone · -1 pts · 2y

windows is just linux that can run games