Friday, January 4, 2013

Add user to sudoers on Archlinux

When you create user on archlinux, by default your user have no super user access, and if you fresh install sudo still not installed by default. To enable sudo on user, this what i did.

Install sudo & gksu

By default you can use su only, but for some apps, for user can be able run using sudo only.

gksu will be needed later when you install some desktop environment. Ex: running root mode on PCmanfm.

$su
#pacman -S gksu sudo

If done.

#nano /etc/sudoers
find line like this below, then add below root

Add user to sudoers on Archlinux

If done, CTRL X to save it, then try to sudo
$sudo su
enter your user password

Add user to sudoers on Archlinux

If you want to run apps in super user mode. For this example, leafpad.
$sudo leafpad

Add user to sudoers on Archlinux


Done and enjoy super user mode on your user. :p

Share on Facebook
Share on Twitter
Share on Google+