https://bugzilla.novell.com/show_bug.cgi?id=813074
https://bugzilla.novell.com/show_bug.cgi?id=813074#c12
L. A. Walsh changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #12 from L. A. Walsh 2013-04-04 19:27:20 PDT ---
where are the sources that you are looking at for 'su'?
I am looking in 12.3 in core-utils. But in factory it is removed
so where is it in factory, and was the su in core-utils used in 12.3?
You keep saying you cannot get su to preserve your DISPLAY/REMOTEHOST values if
you use -p.
... actually, I was using
sudo su, NOT plain su.
When I try plain 'su', with or without -p, it clears my DISPLAY
and my REMOTEHOST -- without pam_env in session.
for some reason, when I have done
sudo su, it preserved those values
the add to pam_env in session changed that.
note, my sudo preserves my vars:
Defaults !env_reset
Defaults !always_set_home
Defaults !env_delete
Defaults !env_check
----
So let me rephrase the problem as being the phrase
"sudo su" resets DISPLAY & REMOTEHOST when pam_env is added to session.
...
So let me ask you this.
The *goal* for REMOTEHOST & DISPLAY are to suvive everything except an
explicit env reset ("env -i").
Short of that, how does SuSE provide for this continuity to a remote DISPLAY?
I had a configuration that has worked for several years. It stopped working
with the addition of pam_env to session.
I understand what you were accomplishing with the change -- i.e.
You are wrong. If the application creates a new unix session or removes the
environment variables, they are lost. That's why pam_env is in the sessecion
section, too.
First, FYI -- a new session doesn't reset env vars:
I printenv to a tmp file and then in a new session -- I diff them, they are
identical except for the last command typed.
Ishtar:law> printenv>/tmp/1
Ishtar:law> setsid printenv >/tmp/2
Ishtar:law> diff /tmp/1 /tmp/2
216c216
< _=/usr/bin/printenv
---
_=/usr/bin/setsid
OK so you want to re-init the session w/new vars... this wasn't in 12.1 or 12.2
or 11.x.
What changed such that this had to go in in 12.3?
That's what I meant by the question, "why": what worked in 11.x-12.2 but broke
in 12.3 that the change was needed?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.