Giter Club home page Giter Club logo

Comments (6)

tomtastic avatar tomtastic commented on May 10, 2024 3

You really really should be putting your config in /etc/sudoers.d/
There is no need to edit the main /etc/sudoers file.

from mac-dev-playbook.

geerlingguy avatar geerlingguy commented on May 10, 2024 2

See above commit; now you can add a custom config like:

configure_sudoers: yes
sudoers_custom_config: |
  # Allow users in admin group to use sudo with no password.
  %admin ALL=(ALL) NOPASSWD: ALL

And it will dump the string in the config var into a file in /etc/sudoers.d/custom.

from mac-dev-playbook.

geerlingguy avatar geerlingguy commented on May 10, 2024 1

It seems like at least in Catalina it's in /private/etc/sudoers.d (or is /etc/sudoers.d an alias to that path?).

I agree, it would be better to add custom config in there instead of modifying the main sudoers file...

Note that if you have configure_sudoers: false then no modifications are made (to @mkwardakov 's original issue). Also, I like using a template instead of lineinfile for any arbitrarily-configurable options.

from mac-dev-playbook.

stale avatar stale commented on May 10, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

from mac-dev-playbook.

tomtastic avatar tomtastic commented on May 10, 2024

Please put the vagrant sudoers config into /etc/sudoers.d/vagrant instead.
You can validate in the same way with visudo -cf /etc/sudoers.d/vagrant

from mac-dev-playbook.

stale avatar stale commented on May 10, 2024

This issue is no longer marked for closure.

from mac-dev-playbook.

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.