Tech:Open Source/Basic Linux/Edit Sudoers
From Cyclopath
up to: Tech:Open Source > Basic Linux
[edit] Edit Sudoers
First things first, edit sudoers and give yourself sudo privileges
su chmod 0640 /etc/sudoers vi /etc/sudoers
Add just one line toward the bottom
%captain ALL=(ALL) NOPASSWD: ALL
Remember to make read-only again, lest Linus yell at you.
chmod 0440 /etc/sudoers
And then add yourself to the captain group
groupadd captain usermod -a -G captain you
(Obviously, substitute your login for 'you', and feel free to call the group something other than 'captain'.)
That's it; we're done with su
exit
