fn: sgnd_run_as_real_user
Purpose
Execute a command as the invoking user when running through sudo.
Arguments
$@— Command and its arguments.
Side effects
May execute the command through sudo -u, or directly.
Returns
Returns the executed command or sudo exit status.
Usage
sgnd_run_as_real_user id -un
