win-sudo icon indicating copy to clipboard operation
win-sudo copied to clipboard

Win-sudo 'UAC elevation was canceled' error

Open fath0m opened this issue 5 years ago • 2 comments

I just installed win-sudo on Windows 10 1909 OS build 18363.815, but once I try to do sudo or su, I always get an error of: UAC elevation was canceled.

Here's the input above:

fath0m@THINKPAD-T480S MINGW64 /
$ su
UAC elevation was canceled

and

fath0m@THINKPAD-T480S MINGW64 /
$ sudo echo 1
UAC elevation was canceled

Once I type a sudo command, it waits for a few seconds and then outputs the error.

fath0m avatar May 04 '20 17:05 fath0m

@fath0m I may have fixed this with my PR at https://github.com/imachug/win-sudo/pull/43, though I'm running into some other errors, feel free to give it a try.

michaelchanwork avatar Jul 23 '20 16:07 michaelchanwork

@fath0m I may have fixed this with my PR at #43, though I'm running into some other errors, feel free to give it a try.

Thanks for the reply and effort. I didn't manage to make it work, so now I'm using https://www.npmjs.com/package/win-sudo and it is working perfectly.

fath0m avatar Jul 24 '20 07:07 fath0m