Affected Version
yay v9.2.1 - libalpm v11.0.3
Issue
Building AUR packages with root IS dangerous, but SHOULD be allowed if someone know the risk. It is very inconvenient to run yay on a system without an non-root user. Consider adding a item to the configure file to allow root.
Currently my workaround is creating a user for yay, adding it to sudoers with NOPASSWD then alias yay="sudo -u yay yay".
Steps to reproduce
With root, execute yay -S caddy (or any other AUR packages)
Output
==> Refusing to install AUR Packages as root, Aborting.
Affected Version
Issue
Building AUR packages with root IS dangerous, but SHOULD be allowed if someone know the risk. It is very inconvenient to run yay on a system without an non-root user. Consider adding a item to the configure file to allow root.
Currently my workaround is creating a user for yay, adding it to sudoers with
NOPASSWDthenalias yay="sudo -u yay yay".Steps to reproduce
With root, execute
yay -S caddy(or any other AUR packages)Output