[Bug 726006] New: Many programs can't start from konsole as root.
https://bugzilla.novell.com/show_bug.cgi?id=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c0 Summary: Many programs can't start from konsole as root. Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: x86 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: christian-aichinger@web.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- When I run programs like konqueror, dolphin, kate, kwrite, kcalc... from konsole as root it shows this error message: kwrite(4544)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kwrite' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/root/.kde4/socket-ai1v/kdeinit4__0 Warning: connect() failed: : No such file or directory KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly drkonqi(4545)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) As normal user the programs are running properly. I have this bug detected at openSUSE 12.1 beta1 build 0315, but the user Trekkie00 has this bug confirmed with version openSUSE 12.1 RC1 build 0379 in the following thread. http://www.opensuse-forum.de/betatest-opensuse-12-1-sonstiges/allgemeines-f1... I believe this bug is akin to #702247. -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |kde-maintainers@suse.de |ovo.novell.com | -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c1 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |coolo@suse.com InfoProvider| |christian-aichinger@web.de --- Comment #1 from Stephan Kulow <coolo@suse.com> 2011-10-25 12:43:34 CEST --- how do you start it as root? kdesu kwrite? -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c2 Christian Aichinger <christian-aichinger@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|christian-aichinger@web.de | --- Comment #2 from Christian Aichinger <christian-aichinger@web.de> 2011-10-25 18:29:46 UTC --- The sequence is: 1. Starting konsole: xxx@pc1:~> kwrite --> Program running properly. 2. Switch to root and repeat: xxx@pc1:~> su - Passwort: pc1:~ # kwrite kwrite(4002)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kwrite' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/root/.kde4/socket-pc1/kdeinit4__0 Warning: connect() failed: : Connection refused KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly drkonqi(4003)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) --> Abort with error message. 3. I try it again after switching back to normal user: pc1:~ # su xxx xxx@pc1:/root> kwrite kwrite(4016)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kwrite' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/home/xxx/.kde4/socket-pc1/kdeinit4__0 [1]+ Stopped kwrite --> And now also an error message and a message window "KWrite - Die KDE-Absturzbehandlung" with the following developer information: Application: KWrite (kwrite), signal: Aborted [KCrash Handler] #7 0xffffe430 in __kernel_vsyscall () #8 0xb76aadcf in raise () from /lib/libc.so.6 #9 0xb76ac765 in abort () from /lib/libc.so.6 #10 0xb5f3d59a in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4 #11 0xb6ff0d00 in ?? () from /usr/lib/libkdeui.so.5 #12 0xb70f5d16 in ?? () from /usr/lib/libkdeui.so.5 #13 0xb70f6eb4 in KApplication::KApplication(bool) () from /usr/lib/libkdeui.so.5 #14 0xb780e592 in ?? () from /usr/lib/libkdeinit4_kwrite.so #15 0xb780a975 in kdemain () from /usr/lib/libkdeinit4_kwrite.so #16 0x0804852b in ?? () #17 0xb76962b3 in __libc_start_main () from /lib/libc.so.6 #18 0x08048551 in _start () -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c3 --- Comment #3 from Stephan Kulow <coolo@suse.com> 2011-10-26 09:31:47 CEST --- I can't reproduce this at all. Does kdesu kwrite work? -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c4 --- Comment #4 from Christian Aichinger <christian-aichinger@web.de> 2011-10-27 19:43:27 UTC --- No! "kdesu kwrite" shows a password window, after password entry it does nothing no program start and no message. I can reproduce this bug on 2 systems, one real computer (Asus A7N8X-Deluxe Board, Athlon XP 1700, 512MB RAM) and one in VirtualBox V3.0.6-OSE both 32-Bit KDE. I have this tried with "konsole" and "XTerm" under KDE, IceWM and TWM, all with the same result. "sudo kwrite" shows this message "kwrite: cannot connect to X server" after password entry, in all configurations. -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c5 --- Comment #5 from Stephan Kulow <coolo@suse.com> 2011-10-28 12:14:57 CEST --- try strace on these programs -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c6 Walter Schlueter <schlueterjun@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schlueterjun@gmx.de --- Comment #6 from Walter Schlueter <schlueterjun@gmx.de> 2011-10-28 11:09:20 UTC --- I´m the person mentioned in the first post (confirmation in forum) Behaviour on my computer is slightly different. Starting applications as user always works. Starting applications using kdesu works. Starting applications from console using su makes crashhandler appear. Klicking on restart application starts desired app properly. Same when starting e.g. dolphin from kickoff. -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c7 --- Comment #7 from Walter Schlueter <schlueterjun@gmx.de> 2011-10-28 11:45:14 UTC --- Created an attachment (id=459332) --> (http://bugzilla.novell.com/attachment.cgi?id=459332) output strace -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c8 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno@ioda-net.ch --- Comment #8 from Bruno Friedmann <bruno@ioda-net.ch> 2011-10-28 11:52:49 UTC --- It will work if you add this to /root/.bashrc cat .bashrc #kde stupid dbus things eval `dbus-launch --auto-syntax` Linked to kde not activating -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c9 --- Comment #9 from Christian Aichinger <christian-aichinger@web.de> 2011-10-28 18:16:32 UTC --- The main failure (can't start program as root) is solved with the solution from Bruno Friedmann, but the other problems described in comment2 exists furthermore. -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c10 --- Comment #10 from Bruno Friedmann <bruno@ioda-net.ch> 2011-10-29 08:51:22 UTC --- Christian, I forget to precise that if I start a konsole as root I always use the su -l way not the su - -l ensure that .bashrc is always read. Some weeks ago, i've read (but don't remember if it was in bugzilla or mailing list) that kde will re-enable the auto run of dbus which is less secure, but remove all that kind of trouble (also for remote ssh -X session) -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c11 --- Comment #11 from Christian Aichinger <christian-aichinger@web.de> 2011-11-02 22:23:09 UTC --- To solve all the problems described in comment2 apply the solution from Bruno Friedmann (comment8) on root AND ALL USERS! An alternative solution is, to add the following line to all .bashrc files: export $(dbus-launch) @ Bruno: The -l option is not necessary on my systems. Thanks for the approach. -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c12 Christian Aichinger <christian-aichinger@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Version|Beta 1 |RC 2 Resolution| |FIXED --- Comment #12 from Christian Aichinger <christian-aichinger@web.de> 2011-11-10 21:27:14 UTC --- All the problems are solved in openSUSE 12.1 RC2 build 0025! -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c13 Philipp Niehues <philippniehues@yahoo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |philippniehues@yahoo.de --- Comment #13 from Philipp Niehues <philippniehues@yahoo.de> 2011-11-19 16:54:57 UTC --- I am not sure, if all problems have been solved! openSUSE 12.1 final: my tests: philipp@linux-s7jg:~> kdesu kwrite /etc/fstab --> works philipp@linux-s7jg:~> sudo kwrite /etc/fstab root's password: kwrite: cannot connect to X server --> does not work philipp@linux-s7jg:~> su Passwort: linux-s7jg:/home/philipp # kwrite /etc/fstab kwrite(2612)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kwrite' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/root/.kde4/socket-linux-s7jg.site/kdeinit4__0 [1]+ Angehalten kwrite /etc/fstab --> does not work. KDE crash handler opens. after "restart" it starts, but without parameters. (not sure whether as root or not, I do not want to modify something important without a reason ;) ) -- 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=726006 https://bugzilla.novell.com/show_bug.cgi?id=726006#c14 --- Comment #14 from Stephan Kulow <coolo@suse.com> 2011-11-21 10:42:50 CET --- So use kdesu. That's what it was written for -- 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.
participants (1)
-
bugzilla_noreply@novell.com