Comments (4)
Hi kotasher,
Certainly it's not gsudo
writing those warnings. It's probably GDFS running into an internal issue. Probably gsudo
is just trying to read a GDFS folder.
I installed GDFS on a VM, and I was not able to reproduce this issue.
- The
Error: The operation was canceled by the user
is just because you clicked onno
on the UAC popup, right? - Whats the outcome if you use 'gsudo' instead of 'sudo'? also use
gsudo --debug cup all
for more detailed info please. - Whats the output of
where sudo
in cmd? the resulting folder is a local HDD folder or a gdfs path? - Do you have any network or GDFS folder included in the path environment variable?
- Were you able to reproduce the issue even after a restart? I am suspecting a connectivity issue?
It would be perfect if you had a clean VM around so you could send me the steps to setup a repro environment for this issue... As I said, choco install gsudo
+ google-drive-file-stream
connected to my account wasnt enough to make those warnings appear.
Thanks
from gsudo.
The Error: The operation was canceled by the user is just because you clicked on no on the UAC popup, right?
Absolutely right. It is not the problem.
Whats the outcome if you use 'gsudo' instead of 'sudo'? also use gsudo --debug cup all for more detailed info please.
By the way, gsudo works like a charm, here is the screenshot.
Whats the output of where sudo in cmd? the resulting folder is a local HDD folder or a gdfs path?
Do you have any network or GDFS folder included in the path environment variable?
No network or GDFS folder included as far as I see.
Were you able to reproduce the issue even after a restart? I am suspecting a connectivity issue?
Perfectly reproducible each time using "sudo" command but not "gsudo".
It would be perfect if you had a clean VM around so you could send me the steps to setup a repro environment for this issue... As I said, choco install gsudo + google-drive-file-stream connected to my account wasnt enough to make those warnings appear.
Unfortunatelly, right now I have no time to investigate it more, maybe some time later.
from gsudo.
That's very informative, thanks.
So what I got is:
-
this is related to the
sudo
symbolic link -
it's happening after
Debug: Elevating Process
and before the cancelled exception, so it is in this method -
so, the warning is written inside .NET Process.Start method (with RunAs Verb) which is a .NET/Windows OS area, probably then inside some GDFS hooked code...
-
this is more likely a GDFS problem triggered when doing RunAs on a SymLink, which is not a very common scenario. It may be worth to report to google. You might be able to reproduce this by running this from a non-elevated powershell:
Start-Process -verb RunAs Sudo -ArgumentList "cup all"
.. In my setup it's not, but if in you computer it does the warnings, then you could create another symlink, likecmd /c mklink NotepadSymLink.exe C:\windows\notepad.exe
and thenStart-Process -verb RunAs NotePadSymLink
, that, if it warns, is a non-gsudo-repro-case to report to google team.
Nonetheless, gsudo
should have detected the symlink and tried to elevate the gsudo
exe instead of the sudo
symlink. That is something I can fix and should probably eliminate the warnings.
from gsudo.
I was able to reproduce this problem locally, I think because after a while I am now logged off from GDFS. Will confirm you if the warnings are gone after the fix.
from gsudo.
Related Issues (20)
- Issue: Multiple simultaneous gsudo versions throw "Unauthorized. (Different gsudo.exe?)"
- Feature Request: Make sudo more powerful HOT 1
- Issue: Nano and vim executables get stuck when opened with gsudo on cmd HOT 5
- Issue: gsudo: "Error: Invalid option: -noninteractive". The gsudo scriptblocks also fail. HOT 5
- Feature Request: Add '#' to lines in elevated shell process? (to mimic Linux) HOT 2
- Issue: System.NullReferenceException thrown at gsudo start HOT 1
- Issue: Wrong SID when using cached token HOT 1
- Feature Request: Hide console when running outside a terminal HOT 7
- Issue: sudo alias (sudo !!) throws a ParseError exception and doesn't elevate the last executed command in PowerShell Core HOT 3
- Feature Request: Give users a lecture when they use gsudo. HOT 5
- Error: `System.InvalidOperationException: No process is associated with this object` when using gsudo with Admin by Request HOT 2
- WSL wrapper will not work if gsudo is on different drive
- Issue: `gsudo` script fails missing `gsudo.exe` in MSYS env HOT 2
- Error: `ParentContainsErrorRecordException` when using `gsudo { Get-NetIPAddress }` HOT 4
- Tokenlist
- Issue: Windows 24H2 Has Sudo HOT 2
- Issue: Sophos AV blocks gsudo
- Issue: caching with `CacheMode = "Auto"` expires too soon in MSYS2 and Cygwin HOT 4
- Commands with Bool ($True/$False) Paramiters do not run within a gsudo session HOT 5
- Feature Request: Add application manifest HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsudo.