-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You are not allowed to run sudo #95
Comments
That error message is specific to when the user is not a member of the admins group: Lines 181 to 185 in 5fd6a79
Lines 343 to 347 in 5fd6a79
Lines 311 to 313 in 5fd6a79
Are you either:
|
As mentioned, this was the "Administrator" account, and it's a member of Administrators. |
I'm betting that's what it is. I'd guess what's happening here is the same thing Terminal had to deal with - there's a difference between running elevated with a split token, vs the "UAC entirely disabled" scenario. Heck, right above that, there's even: Lines 116 to 124 in 5fd6a79
Looks like that check doesn't happen till after the |
@zadjii-msft Is this a supported OS target? |
I dunno if I can comment on the big-picture "is UAC disabled supported". I suppose it should be, at least from the perspective of |
@zadjii-msft Was referring to sudo running on Windows Server 2022. I thought sudo was only targeting newer versions. |
Oh yea I don't see why not. Sudo might be "targeting" newer versions, but it should work all the way back to, like, windows 7:
All it really needs is ConDrv, and that's been there for a loooong time now. Only reason we haven't backported it to win10 yet is because backporting takes a lot of paperwork to fill out 🤷 |
Cool thanks! I was looking to pitch in a fix here but wanted to verify running in this config was supported before I spun my wheels. |
Is there any progress on this issue? |
This comment has been minimized.
This comment has been minimized.
That discussion was had in #23 and is unrelated to this issue. |
Sudo for Windows version
1.0.0
Windows build number
10.0.20348.2582
Other Software
No response
Steps to reproduce
On Windows Server 2022, in an Administrator cmd.exe window,
sudo c:\windows\system32\cmd.exe
Expected Behavior
Expect cmd to run
Actual Behavior
Got "You are not allowed to run sudo" instead.
The text was updated successfully, but these errors were encountered: