I don't know anything about Windows and try to understand the concepts about Permissions. Unfortunately, simply Googling doesn't help at all.
Windows says that my user is a member of the "Administrator" group. But yet, when I normally run programs, such as PowerShell, they reject to do certain things, such as installing new services. However when I select "Run as Administrator" in the Start-Menu, they suddenly are able to do so. What's the mechanism behind that?
I created a file within a process (PowerShell) that was "Run as Administrator" and then checked the owner of the file in Windows. But much to my surprise, the owner was my own user, instead of the "Adminstrator" user.
What's going on?
/etc/sudoers
file as being allowed to usesudo
?sudo
. But more similar toseccomp
andcapabilities
(see man7.org/linux/man-pages/man7/capabilities.7.html ), because the user does not change, but rather the capabilities of the process, running with the same user, change. That's called "same-desktop elevation". In fact I previously misunderstood it to be functionally equivalent tosudo
, which was the source of the confusion.Start-Process -Credentials
while passing the credentials of an administrator user and being logged in as a non-administrator. See learn.microsoft.com/en-us/powershell/module/… .