[Bug 559773] New: Sudo cannot run X-applications
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c0 Summary: Sudo cannot run X-applications Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Security AssignedTo: security-team@suse.de ReportedBy: neptunia@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5 Sudo cannot start any windowing application. The following for example what I get trying to start Gedit: anixx@anixx-desktop:~> sudo gedit (gedit:22488): Gtk-WARNING **: cannot open display: Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c Thomas Biege <thomas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|security-team@suse.de |prusnak@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c1 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Pavol Rusnak <prusnak@novell.com> 2009-12-02 11:51:57 CET --- That's the correct behavior. You should NOT run X applications using sudo. You can use kdesu, gnome-su or other alternatives to achieve privilege escalations. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c2 --- Comment #2 from Ilya Chernykh <neptunia@mail.ru> 2009-12-02 18:47:12 UTC --- Is it possible to enable starting X apps with sudo? seems some software requires it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c3 --- Comment #3 from Pavol Rusnak <prusnak@novell.com> 2009-12-02 19:55:26 CET --- No. Software is broken if it requires it. What software do you have in mind ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c4 --- Comment #4 from Ilya Chernykh <neptunia@mail.ru> 2009-12-02 19:07:58 UTC --- PlaneShift game. It starts only under root and says X-server unavailable when starting from another user (dispite all priviledged to its folder assigned to him): anixx@anixx-desktop:~> '/opt/PlaneShift/psclient' Your configuration files are in... /home/anixx/.PlaneShift Xlib: connection to ":0.0" refused by server Xlib: No protocol specified ERROR: FATAL: Cannot open X display WARNING: failed to initialize plugin 'crystalspace.window.x' Could not create an instance of crystalspace.window.x! WARNING: failed to initialize plugin 'crystalspace.graphics2d.glx' Error loading Graphics2D plugin. WARNING: failed to initialize plugin 'crystalspace.graphics3d.opengl' DEBUG: Initializing OpenAL sound system DEBUG: Retrieving available devices. DEBUG: Default OpenAL device: '((sampling-rate 44100) (device '(native)) DEBUG: No device specified DEBUG: Falling back on default device DEBUG: Can't retrieve attributes size: OpenAL error ALC_INVALID_DEVICE No 3D driver! psclient: No 3d driver (iGraphics3D) plugin! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c5 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major --- Comment #5 from Pavol Rusnak <prusnak@novell.com> 2009-12-02 23:06:32 CET --- Well, it doesn't mean that you can not run the application with "su -c". Game error is clearly upstream bug and has nothing to do with distribution (same problem seem to have Ubuntu users too). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=559773 http://bugzilla.novell.com/show_bug.cgi?id=559773#c6 --- Comment #6 from Ilya Chernykh <neptunia@mail.ru> 2009-12-02 23:17:00 UTC --- No. Under Ubuntu it starts well under non-admin users. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com