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.
Advertisements
  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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: