To be very specific:
Debian system:
I want to install Linuxbrew, when logged in as root, as a specific user.
Linuxbrew enjoys the niceness of being installed by the user, for the user's specific purposes. My goal is to, as root (definitely as root), execute the command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
as the user, so for all purposes, and intent, a specified user ran it.
the motivation is to run this command on behalf of, and as, the specified user so they may use Linuxbrew freely, but root user has provided it.
Note: I would like -simple- solutions for educational purposes. I am sure there's a variety of esoteric ways, but the less obfuscated, the better. this is a part of the solution. Simplicity, and readability.