Arch Linux sudo: command not found

18,719

First, you need to install the sudo package to use sudo:

pacman -S sudo

After that, you need to edit the sudoers file and add your username to it.

Share:
18,719
Admin
Author by

Admin

Updated on June 14, 2022

Comments

  • Admin
    Admin almost 2 years

    I recently installed Arch Linux on my Raspberry Pi and, after logging in as root and creating myself a user account I tried to use the sudo command. This was the result:

    [phillipus@alarmpi home]$ sudo mkdir Public
    bash: sudo: command not found
    

    After searching for the problem, I logged in as root and executed pacman -S sudo. This was followed by a long output and a confirmation of installation. Following this, I retried to use sudo both as root and as my user, both times getting the same response. Following another solution to the problem, I tried to add myself to /etc/sudoers, only to find out that it didn't exist.

    I am not very experienced with Linux, so could you please try to explain your responses fully?