Use SUDO_USER instead of `logname`