Set Password For Sudo Commands Permanently OS X

  • by

When we write scripts, we want to embed sudo command with password automatically for our username. We need to edit the hidden etc/sudoers to add (usersname is our login name).

usersname ALL=(ALL) NOPASSWD: ALL

   sudoer_file    sudoers

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Paid Links