How to add sudo user on Arch Linux

In some cases, you may need to give one or more users sudo privileges. In Arch Linux (and most Linux distribution) we can easily add users to sudoers list by editing the sudoers file. This short tutorial will show you how to add a normal user to sudoers on Arch Linux.

archlinux-logo-dark-1200dpi.b42bd35d5916.png

Open Terminal and edit the file /etc/sudoers with visudo. Since I am not familiar with visudo, I use nano instead. Run the following command as root.

nano /etc/sudoers

For example, I want to add user fitri to sudoers. So, I add the following line to the sudoers file:

fitri ALL=(ALL) ALL

add sudo user on arch.png

Close and save the file and now the user has sudo privilege.

Admin

Leave a Reply

Your email address will not be published. Required fields are marked *