News for hackers. Stuff that matters.
Re:Sudo for Windows by HackerLemon on Thursday February 08, 2024 @02:36PM (#39306527)
What's the difference from opening a Terminal (Admin) window? Just that you can run a single command as admin? I must be missing something here
Re:Sudo for Windows by Isthatablackgsd on Thursday February 08, 2024 @02:40PM (#39306579)
Opening a terminal in admin window which means any commands you put in that windows will always have admin privilege, no matter what.

What does Sudo is to only provide the root/admin privileges for specific inputted command. Once it is done, it goes back to user privileges. This way, the terminal window didn't need to end the session to go back to user privileges.

Re:Sudo for Windows by ikekkdcjkfke on Thursday February 08, 2024 @04:07PM (#39307707)
Why is admin privilidge even a thing? Ask for the god damn specific resource you want access to and I'll answer yes or no!
Re:Sudo for Windows by dwattttt on Thursday February 08, 2024 @04:26PM (#39307950)
"Admin"'s identity is the resource you're asking permissions to use. If don't want identities, are you going to manually authorize every file that needs to be interacted with? For a recursive delete of thousands of files?
Re:Sudo for Windows by LudwigNagasena on Thursday February 08, 2024 @08:34PM (#39310342)
You would authorize deletion in a specific directory.
Re:Sudo for Windows by eviks on Thursday February 08, 2024 @10:46PM (#39311152)
Is that the shiny new capabilities based future that never arrives?
Re:Sudo for Windows by gwervc on Thursday February 08, 2024 @02:52PM (#39306738)
That's a very slim proposition value, especially when multiple commands in a row require admin privileges.
Re:Sudo for Windows by MattPalmer1086 on Thursday February 08, 2024 @03:08PM (#39306959)
Sudo also allows you to control which commands can be elevated to admin.

It also lets you elevate to admin without knowing the admin password, you elevate with your normal account password. Effectively, some commands can execute as admin, but the user generally cannot.

So you can allow limited administration without giving everything away.

Re:Sudo for Windows by bigstrat2003 on Thursday February 08, 2024 @07:00PM (#39309526)
That's like saying (in a Linux context) "sudo is dumb because you can just use su". The two tools have different use cases.
Re:Sudo for Windows by whywhywhywhy on Friday February 09, 2024 @06:28AM (#39313757)
Good thing they're keeping the admin terminal too so you can just keep using that.

Personally I think it's way more likely the admin command is the one off like installing something, changing a setting and then everything else before and between it are user commands that don't need to be in admin space most of the time.

Re:Sudo for Windows by remus on Thursday February 08, 2024 @02:42PM (#39306616)
> Just that you can run a single command as admin?

I mean, that's sudo's whole thing! [1] You can live your day to day terminal life without the risk of borking things too badly, then when you occasionally need to elevate to higher privileges you can do it easily for that specific command.

[1] Technically not the whole thing obviously, but it's a very common use case.

Re:Sudo for Windows by Repulsion9513 on Thursday February 08, 2024 @07:58PM (#39310034)
That has nothing to do with sudo; you could do the same with su -c long before sudo existed...
Re:Sudo for Windows by bogantech on Friday February 09, 2024 @09:45PM (#39323060)
If you know the root password
Re:Sudo for Windows by Repulsion9513 on Tuesday February 20, 2024 @01:37PM (#39445008)
Defaults targetpw

The point of sudo is not which password is used, whatsoever.

Re:Sudo for Windows by dist-epoch on Thursday February 08, 2024 @03:23PM (#39307168)
It's faster and it keeps your current directory, opening a new Terminal starts in the default directory.

It's a convenience thing.