Giter Site home page Giter Site logo

Comments (2)

gerardog avatar gerardog commented on May 19, 2024

Yes, the elevated and non-elevated apps are actually running in isolated logon sessions, with isolated network connections each. Therefore UNC paths (\\server\share\file) may not be accesible if the elevated session doesn't inherit access or has cached credentials for that share.
Also, mapped drives are no longer resolvable from the elevated session, for instance: If you run gsudo and your current directory is a mapped drive like Z: when elevated the Z: drive no longer points us to a valid \\server\share\file path.

This two issues breaks two things:

  • One anti-tampering gsudo protection method.
  • The current directory may be invalid on the elevated session, so many commands will refuse to run.

So, this issue is non trivial to solve and has ramifications.

Nonetheless, I've managed to make some fix that allows to use gsudo from a mapped or network drive as long as the current directory is NOT a network drive.

For example the following cases are working on my machine after some fixing

C:\> Z:\utils\gsudo.exe netsh interface ipv4 set ...
C:\> \\server\share\gsudo netsh interface ipv4 set ...

(please note the current directory is C:, not z: )

You can preview the fix from this UNSTABLE, unsigned build)

Another workaround would be to copy gsudo to a local folder first...
As a sidenote, you may want to omit the --piped argument and let gsudo decide which mode to use.

from gsudo.

gerardog avatar gerardog commented on May 19, 2024

I've done some tests with v0.7 and, in my extremely limited network/scenario, looks like it's working.
I appreciate anyone who can jump in and let me know if this is still and issue.
Thanks.-

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.