purplesyringa / win-sudo

Add `sudo` command to Git Bash
MIT License
183 stars 55 forks source link

sudo on nano freezes #34

Closed tuguldurio closed 5 years ago

tuguldurio commented 5 years ago

in git-bash when i write $ sudo nano sometext.txt it freezes

purplesyringa commented 5 years ago

Can you see Windows asking you for admin credentinals (User Account Control)? Does it hang on other commands like sudo echo 1 or su?

tuguldurio commented 5 years ago

earlier a day other than that was working, but now it gives UAC elevation was canceled

purplesyringa commented 5 years ago

Is powershell installed on your system? Is, by any chance, UAC is disabled at all (i.e. you can run programs as administrator without Windows asking you for password/pressing Yes)?

purplesyringa commented 5 years ago

@tuguldurio

tuguldurio commented 5 years ago

For some strange reason its working now, maybe it had something to do with my UAC.

purplesyringa commented 5 years ago

Great to hear this problem is solved.