[Bug 478633] New: Xstartup file is not executed correctly
https://bugzilla.novell.com/show_bug.cgi?id=478633 Summary: Xstartup file is not executed correctly Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Security AssignedTo: security-team@suse.de ReportedBy: estellnb@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) SUSE No matter whether I use kdebase3-kdm or kde4-kdm my Xstartup file is not executed correctly.
grep Xstartup /usr/share/kde4/config/kdm/kdmrc # Default is "/etc/X11/xdm/Xstartup" Startup=/etc/kde4/kdm/Xstartup
cat /etc/kde4/kdm/Xstartup #!/bin/bash echo xx >/etc/kde4/kdm/isrun { sleep 3; export HOME=/root echo yy$DISPLAY-yy >>/etc/kde4/kdm/isrun exec kstart --window ROOT-Konsole --iconify konsole --caption ROOT-Konsole #
/etc/kde4/kdm/isrun 2>>/etc/kde4/kdm/isrun } &
The thing is that Xstartup is executed (xx,yy in isrun) but no root console is launched. Kstart or konsole do not give any error message. I have exactly the same setup under Debian Lenny and FreeBSD where it works fine. So this is a SuSE-specific issue. Reproducible: Always -- 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=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c1
--- Comment #1 from Elmar Stellnberger ATK
https://bugzilla.novell.com/show_bug.cgi?id=478633
User lnussel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c3
--- Comment #3 from Elmar Stellnberger ATK
https://bugzilla.novell.com/show_bug.cgi?id=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c4
--- Comment #4 from Elmar Stellnberger ATK
https://bugzilla.novell.com/show_bug.cgi?id=478633
Lubos Lunak
https://bugzilla.novell.com/show_bug.cgi?id=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c5
--- Comment #5 from Elmar Stellnberger ATK
https://bugzilla.novell.com/show_bug.cgi?id=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c6
--- Comment #6 from Elmar Stellnberger ATK
echo $DISPLAY :0
env DM_CONTROL=/var/run/xdmctl SHELL=/bin/sh USER=elm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin PWD=/ LANG=de_DE.UTF-8 SHLVL=1 HOME=/root XCURSOR_THEME=DMZ LOGNAME=elm DISPLAY=:0 XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-wiLE9X _=/usr/bin/env
xterm No protocol specified Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm Xt error: Can't open display: %s
Using XAUTHORITY=/var/lib/xdm/authdir/authfiles/A:0-wiLE9X in another ROOT-shell works fine. Even setting XAUTHORITY="" and creating a valid /root/.Xauthority that allows root to launch any program from any vtXX will not help. -- 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=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c7
--- Comment #7 from Elmar Stellnberger ATK
https://bugzilla.novell.com/show_bug.cgi?id=478633
User estellnb@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=478633#c8
--- Comment #8 from Elmar Stellnberger ATK
participants (1)
-
bugzilla_noreply@novell.com