On 12/22/2017 02:16 PM, Óscar García Amor wrote:
# su - user -c "command"
In this case:
# su - user -c "makechrootpkg -c -r /var/cache/PATH_TO_MY_CHROOT"
Yes, of course, but then "makechrootpkg" at some point wants to call "pacman" which will fail or will cause some unwanted sudo prompt to appear.
That's why I want to start with "root permissions" and only want to drop to a less privileged user for the cases where software is built.