[Bug 440884] New: 'su -' doesn't allow display access (xauth)
https://bugzilla.novell.com/show_bug.cgi?id=440884 Summary: 'su -' doesn't allow display access (xauth) Product: openSUSE 11.1 Version: Factory Platform: i586 OS/Version: SuSE Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wolfgang@rosenauer.org QAContact: qa@suse.de Found By: Beta-Customer 'su -' doesn't allow display access (xauth) ssh -X root@localhost works and the DISPLAY variable is set but su - doesn't allow using X applications: # su - Password: linux-42u9:~ # yast2 No protocol specified (y2controlcenter-gnome:3692): Gtk-WARNING **: cannot open display: :0.0 Setting "xhost +" before using su - and it 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=440884
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=440884#c1
roland kletzing
Setting "xhost +" before using su - and it works. mind that this is dangerous as any user from any ip may spy on your X display now!
-- 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=440884
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=440884#c2
--- Comment #2 from Wolfgang Rosenauer
i would have recommended to use "sux" here instead, but it seems this is not part of opensuse anymore. appropriate feature seems to have been merged in "su", but i don`t find documentation how to use that and/or what option is needed. (man su or info coreutils does not give a hint)
su just did that correctly since sux was dropped. No config was needed (at least not to change anything on the system manually).
Setting "xhost +" before using su - and it works. mind that this is dangerous as any user from any ip may spy on your X display now!
I know. I just wanted to point out that it is really an xauth issue and this is just a virtual machine to test anyway. -- 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=440884
User roland.kletzing@materna.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=440884#c3
--- Comment #3 from roland kletzing
su just did that correctly since sux was dropped.
i`m wondering - how does/did "su" do that? i checked the coreutils sources and i don`t find any code where su does copy mit-magic-cookie (xauth) from one account to the other one... -- 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=440884
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=440884#c4
Michael Calmer
participants (1)
-
bugzilla_noreply@novell.com