On 13/04/18 02:39 PM, Patrick Shanahan wrote:
probably a local setting as I don't recall "su" ever defaulting to root
MAN SU(1) says When called without arguments, su defaults to running an interactive shell as root. For backward compatibility, su defaults to not change the current directory and to only set the environment variables HOME and SHELL (plus USER and LOGNAME if the target user is not root). That is certainly how it has behaved for me though 10.x on to my present 42.3. I can see why tumbleweed or 15.x should change that without announcement of same. Check your man pages. AND On 13/04/18 03:09 PM, Mark Hounschell wrote:
Leap-15: # cat /etc/default/su # Per default, only "su -" will set a new PATH. # If this variable is set to "yes" (default is "no"), # every su call will overwrite the PATH variable. # # The recommended default is "yes". The default "no" behavior could have # a security implication in applications that use commands without path. ALWAYS_SET_PATH=yes
So it is clearly a change in behavior but that comment answers my question. It appears to be an intended change.
Ah, very apropos. But ...
Well, I haven't made any "local" setting that changed the behavior.
I had. My su'd path for root: # echo $PATH /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games Aparently I was a bit paranoid some wya back :-) I'm open to criticism on that. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org