title: Setting Linux environment variable for another user (sudo)
body: <p>How can we set environment variables for another user on a machine? I want to run some script with <code>sudo -u xyz</code> but I need to set some environment variables before running the script for xyz user which is different from my login. </p>