Archive

Posts Tagged ‘/etc/sudoers’

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

February 10, 2013 2 comments

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.