How is it that I've been writing shell scripts for over 15 years now to automate processes, and I've only just discovered $SUDO_USER today? I feel like that's a MASSIVE oversight.

@twann @mike can either of you provide a link, or personal clarification what that is and how to use it?


@mike @thorn @twann another nicety might be $SUDO_PROMPT: Used as the default password prompt unless the -p option was specified.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.