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.
Categories: Mac OS X
/etc/sudoers, mac os x, sudo, sudo not found in mac osx, sudoer file
Thanks
Aking questions агe in fact pleasant tɦing if yyou
are not understanding sοmething totally, but this post offers gooid understanding ʏet.