this post was submitted on 24 Jun 2023
6 points (87.5% liked)
Arch Linux
7841 readers
1 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Running any AUR helper (I recommend
paru
instead ofyay
but either is a good option) should always be done with a normal user and never withsudo
.This is because both the download of
PKGBUILD
as well as the download of the sources and the compilation must be done with a normal user. Doing that as root poses a HUGE risk to the integrity of the system, a badPKGBUILD
, a source code with errors, a script with a space where it shouldn't be and you can even break your system completely, you could even execute malicious code!It is the AUR helpers themselves that will (eventually) ask you for a
sudo
authentication for when they need to do the final step of installing the package once it has been built.