[Bug 441314] New: su - strips XAUTHLOCALHOSTNAME
https://bugzilla.novell.com/show_bug.cgi?id=441314 Summary: su - strips XAUTHLOCALHOSTNAME Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: hpj@novell.com QAContact: qa@suse.de Found By: --- When issuing "su -", the XAUTHLOCALHOSTNAME env var gets stripped out. This leads to programs run from that shell not being able to access to local display, when logged in via GDM. It usually contains the string "localhost". Suggest leaving XAUTHLOCALHOSTNAME alone so xauth works. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=441314
User hpj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c1
--- Comment #1 from Hans Petter Jansson
https://bugzilla.novell.com/show_bug.cgi?id=441314
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=441314
User lnussel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=441314
User kukuk@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c3
Thorsten Kukuk
Introduce a new environment variable XAUTHLOCALHOSTNAME which if set takes precedence over gethostname(). It holds the local hostname that was set at the time the X session was started and thus is used and thus identifies the credential for this session in the authority file. This variable can be set by the display manager for the entire X session. I've fixed xdm and startx to do this, fixes for kdm and gdm are on their way.
If the variable don't exist, X11 should fall back to hostname in my eyes. the variable is from 2005, so if something breaks only now, it is no pam_xauth change. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=441314
User kukuk@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c4
--- Comment #4 from Thorsten Kukuk
pam_xauth has to take care to take all necessary steps to make X display access possible.
pam_xauth cannot take care about such environment variables, because they are set/deleted by su itself if you call "su -". Eiter su from coreutils has to be modified, or X11 has to be fixed to work again without this variable. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=441314
User lnussel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c5
--- Comment #5 from Ludwig Nussel
(In reply to comment #2 from Ludwig Nussel)
pam_xauth has to take care to take all necessary steps to make X display access possible.
pam_xauth cannot take care about such environment variables, because they are set/deleted by su itself if you call "su -".
It does that with DISPLAY and XAUTHORITY already by using pam_putenv. su then uses pam_getenvlist after clearenv to restore environment variables that are actually 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.
https://bugzilla.novell.com/show_bug.cgi?id=441314
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c6
--- Comment #6 from Michael Calmer
https://bugzilla.novell.com/show_bug.cgi?id=441314
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c7
Michael Calmer
https://bugzilla.novell.com/show_bug.cgi?id=441314
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c8
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=441314
User sndirsch@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c9
--- Comment #9 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=441314
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441314#c10
Michael Calmer
participants (1)
-
bugzilla_noreply@novell.com