Home > Mac OS X > Adding a standard user to /etc/sudoers in Mac OS X

Adding a standard user to /etc/sudoers in Mac OS X

If you want to use sudo command for a standard user account, then you need to add this account to /etc/sudoers file. Use the following steps to add your desired user account to /etc/sudoers file:

  • login as administration : i.e.   su – adminuser
  • type sudo visudo
  • Find out the following

# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL

  • Add your user account below “root ALL=(ALL) ALL”.  For example:

# User privilege specification
root ALL=(ALL) ALL
yourusername ALL=(ALL) ALL
%admin ALL=(ALL) ALL

  • Save your file (:wq), and now you will be able to use sudo command for your username.
  1. stvnbm
    September 17, 2013 at 4:35 pm

    Thanks

  2. May 18, 2014 at 12:20 am

    Aking questions агe in fact pleasant tɦing if yyou
    are not understanding sοmething totally, but this post offers gooid understanding ʏet.

  1. No trackbacks yet.

Leave a comment