Giter Site home page Giter Site logo

Comments (4)

gerardog avatar gerardog commented on May 19, 2024

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 on no 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.

kiberdruzhinnik avatar kiberdruzhinnik commented on May 19, 2024

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.
image

Whats the output of where sudo in cmd? the resulting folder is a local HDD folder or a gdfs path?

image

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.

gerardog avatar gerardog commented on May 19, 2024

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, like cmd /c mklink NotepadSymLink.exe C:\windows\notepad.exe and then Start-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.

gerardog avatar gerardog commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.