# Determine the original (non-root) user.
# 'logname' usually returns the user who invoked sudo.
ORIG_USER=$(logname 2>/dev/null || echo "$SUDO_USER")
if [ -z "$ORIG_USER" ]; then
echo "Could not determine the original user."
exit 1
fi
just put the file in a globally-accessible location
just put the file in a globally-accessible location