Saturday, August 14, 2010

Adding myself to the sudoers list.

I like using sudo, so I put myself on the sudoers list by editing the /etc/sudoers file.
su -c 'vi /etc/sudoers'


I uncommented the line shown below to give members of the wheel group permission to run all commands as su.
#%wheel  ALL=(ALL)   ALL

so that it looks like
%wheel  ALL=(ALL)   ALL


Finally, I added myself to the wheel group (my username is joel).
su -c '/usr/sbin/usermod -a -G wheel joel'

No comments:

Post a Comment