Bug 50671

Summary: Application launch fails when run as root or super-user on remote host, no error message.
Product: [Applications] kdesu Reporter: Larry Johnson <ljohnson>
Component: generalAssignee: kdesu bugs tracker <kdesu-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Larry Johnson 2002-11-13 19:42:51 UTC
Version:            (using KDE KDE 3.0.4)
Installed from:    SuSE RPMs
OS:          Linux

This bug severely limits the usefulness of running a KDE destop on a remote host.

1. Remote Linux host running new, clean, standard install of Intel SuSE 8.0., private LAN, host running at init level three with xfs started.
2. Local Win2kSP3, SSH Secure Shell 3.2.0, X-window server X-Deep/32 4.0., X-11 tunnel.
3. Set up SSH session, start local X-widow server, Launch KDE to run, no problems.
4. Any application requiring root access to launch (Konquerer - Super-user, YAST2, ...) runs and fails without and notification or error message, only the mouse pointer and taskbar icon sometimes appear for a few seconds. 
5.  I captured this as it was attempting to launch (ps -ef | grep ked | grep -v grep )  - 1183 was the new process:
ljohnson@kise-012:~> ps -ef | grep kde | grep -v grep
ljohnson   864   848  0 01:25 pts/0    00:00:00 /bin/sh /opt/kde3/bin/startkde
ljohnson   879     1  0 01:25 ?        00:00:00 kdeinit: Running...      
ljohnson   882     1  0 01:25 ?        00:00:00 kdeinit: dcopserver --nosid
ljohnson   885     1  0 01:25 ?        00:00:00 kdeinit: klauncher       
ljohnson   887     1  0 01:25 ?        00:00:00 kdeinit: kded            
ljohnson   896   879  0 01:25 ?        00:00:00 /opt/kde3/bin/artsd -F 10 -S 4096 -s 5 -m artsmessage -l 3 -f
ljohnson   900     1  0 01:25 ?        00:00:00 kdeinit: knotify         
ljohnson   906     1  0 01:25 ?        00:00:00 kdeinit: ksmserver --restore
ljohnson   907   879  0 01:25 ?        00:00:01 kdeinit: kwin            
ljohnson   909     1  0 01:25 ?        00:00:00 kdeinit: kwrited         
ljohnson   911     1  0 01:25 ?        00:00:01 kdeinit: kdesktop        
ljohnson   917     1  0 01:25 ?        00:00:02 kdeinit: kicker          
ljohnson   921     1  0 01:25 ?        00:00:00 kdeinit: klipper -icon klipper -miniicon klipper
ljohnson   923     1  0 01:25 ?        00:00:00 kdeinit: kmix            
ljohnson   944     1  0 01:27 ?        00:00:00 /opt/kde3/bin/kdesud
ljohnson  1010     1  0 01:30 ?        00:00:00 kdeinit: kio_uiserver    
ljohnson  1106     1  0 01:49 ?        00:00:00 kdeinit: kcookiejar      
ljohnson  1241   879  0 02:25 ?        00:00:00 kdeinit: kio_file file /tmp/ksocket-ljohnson/klauncherPqR9Fb.slave-socket /tmp/ksocket-ljohnson/konquerorEloWKb.slave-socket
ljohnson  1242   879  0 02:26 ?        00:00:00 kdeinit: kio_file file /tmp/ksocket-ljohnson/klauncherPqR9Fb.slave-socket /tmp/ksocket-ljohnson/kdesktop50W3mb.slave-socket
l

6. Here is the spool from the SSH client...
Last login: Tue Nov 12 10:39:04 2002 from console
Have a lot of fun...
ljohnson@kise-012:~> startkde
xset:  bad font path element (#37), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
xset:  bad font path element (#37), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
DCOPServer up and running.
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
Server has no DPMS extension
>> running as realtime process now (priority 50)
Mutex destroy failure: Device or resource busy
Mutex destroy failure: Device or resource busy
mcop warning: user defined signal handler found for SIG_PIPE, overriding
QObject::connect: No such slot KWrited::block_in(const char*,int)
QObject::connect:  (sender name:   'unnamed')
QObject::connect:  (receiver name: 'unnamed')
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/DigitalClock) Negative sizes (2,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/QLabel) Negative sizes (69,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/DigitalClock) Negative sizes (2,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/QLabel) Negative sizes (69,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/DigitalClock) Negative sizes (2,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/QLabel) Negative sizes (69,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/DigitalClock) Negative sizes (2,-4) are not possible
QWidget::setMinimumSize: The smallest allowed size is (0,0)
QWidget::setMaximumSize: (unnamed/QLabel) Negative sizes (69,-4) are not possible
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
error stat'ing fd 3: Bad file descriptor
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
Mutex destroy failure: Device or resource busy
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
Mutex destroy failure: Device or resource busy
Mutex destroy failure: Device or resource busy
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
Mutex destroy failure: Device or resource busy
//usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so: Feature JPEG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqjpeg.so!
//usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so: Feature MNG already defined in /usr/lib/qt-3.0.3/plugins/imageformats/libqmng.so!
Comment 1 Waldo Bastian 2002-11-18 21:13:39 UTC
kdesu fails to properly forward the Xauthority information. The reason is that
ssh sets an Xauth entry for "<hostname>/unix:10" but sets $DISPLAY to
"localhost:10", kdesu then issues a "xauth localhost:10" which fails to find
"<hostname>/unix:10", using "xauth :10" would give the correct result.
Comment 2 Waldo Bastian 2002-11-21 12:02:02 UTC
Subject: kdelibs/kdesu

CVS commit by waba: 

CCMAIL: 50671-done@bugs.kde.org
Fix authentication forwarding in combination with ssh -X


  M +6 -3      kcookie.cpp   1.19
  M +5 -2      kdesu_stub.c   1.36