Anton Aylward wrote:
Given the long terms existence of su, how come we have sudo?
It's easier and more reliable to use sudo to run commands since sudo can be configured to preserve things 'su' clears (after a rewrite a few years ago). ENV diffs: su: < DISPLAY=:0.0 < REMOTEHOST= < PS4=+ --- sudo:
DISPLAY=athenae:0 REMOTEHOST=athenae PS1=\[$(titlebar)\]${HOSTNAME}:$(spwd "$PWD")>\[\] PS2=> PS4=>${BASH_SOURCE:+${BASH_SOURCE/$HOME/\~}}#${LINENO}${FUNCNAME:+(${FUNCNAME})}>
--- su clears your XDISPLAY (which I thought could be a security risk, but was overruled) and resets your prompts. I filed a bug about the DISPLAY change, but was told suse had redefined the session and passing through the original host and display was no longer supported, so the bug was closed as rejected or will not fix. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org