Giter VIP home page Giter VIP logo

Comments (4)

markfaine avatar markfaine commented on July 22, 2024

I've discovered the cause and a workaround, but I be interested to know your thoughts and if there is anyway to workaround it in the plugin without modifying sudoers.

https://www.smarinov.com/weblog/sudoedit-not-working/

from vim-eunuch.

tpope avatar tpope commented on July 22, 2024

That's annoying. Does it prompt for the password before spewing that error? If not, detecting the error and trying another method might not be too terrible.

from vim-eunuch.

markfaine avatar markfaine commented on July 22, 2024

No, just the error. For now, I added !sudoedit_checkdir to Defaults in sudoers but I'd rather not have to do that everywhere. Thanks

from vim-eunuch.

tpope avatar tpope commented on July 22, 2024

I think i'm gonna classify this as wontfix. A file in a writable directory could just as easily be removed and recreated. You may as well make the file writable too, because the security gained by making it read only is literally zero. I think sudo is trying to do you a favor, and I would need a good reason to override it.

Related: #34. If I allowed both of these, that would allow a nasty exploit where if you replace an existing file with a symlink, you can write to literally anywhere in the filesystem.

from vim-eunuch.

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.