How do I add a user to /etc/sudoers file?

Jump to First Reply
Posted:
in macOS edited January 2014
How do I add a user to /etc/sudoers file?



I'm a local admin (and root) on my OS X box and I want to add a user to be able to sudo.



What does the %admin do? (I mean why the % char? what's it do?)



Do I have to use visudo to edit it?

Comments

  • Reply 1 of 2
    kickahakickaha Posts: 8,760member
    Yes. man visudo will help.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 2
    Are you just looking to give the person admin rights? Then they just need to be an admin, or added to the "wheel" group. If you are trying to do something more specific, then you need to spend some time (as Kickaha suggested) with the sudo manual, and look at all of the examples given in /etc/sudoers
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.