Wednesday, July 25, 2012

Set Up Sudo: Escalate Privilege Without Using SU

I've been using Arch Linux now for more than a year and all that time I have not set up sudo. Sudo is a better way to perform root jobs without logging in to your root account. Among many benefits of sudo is that once you're finished with your business it drops the privileges back to normal. You can also specify which users can perform what actions.

Download the sudo program.
$pacman -S sudo

The configuration file for sudo is the /etc/sudoers

Warning: always use visudo to edit /etc/sudoers.

Which means don't open /etc/sudoers with an editor? not really. You can set visudo to use your favorite editor. For example vim, nano, gedit.

#to set visudo to use nano and open a default sudoers file
$ EDITOR=nano visudo

#add a user (you perhaps) to do root activity

Read about all the options available for sudo in this Arch wiki.
Read the sudo manual.

Post a Comment

Update Gnucash 2.6.16 --> 2.6.18

It's a long road to this update. It isn't a normal update at all. I had to manually compile goffice0.8 and webkitgtk as well as gnu...