Bug#618733: x11-common: startx as non-root no longer working
Grumble. I apologize for the noise, I should have been more thorough. Apparently somewhere in the mists of time, while trying to solve things myself, I decided to hand-edit the startx script. And while I did reinstall everything X-related, I apparently did not reinstall xinit itself. A simple sh -x on the startx script showed that it wasn't even trying to run /usr/bin/X... Again, my sincerest apologies for taking your time. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
On Fri, Mar 18, 2011 at 01:22:06 +0100, Arno Schuring wrote: Package: x11-common Version: 1:7.5+8 Severity: minor It appears to be no longer possible to start X as non-root user, regardless of the x11-common configuration. I don't use this too often, so I can't say exactly when it broke. I do remember that this worked fine before Squeeze was released though. aschuring@neminis:~$ startx [...] Fatal server error: Cannot move old log file /var/log/Xorg.0.log to /var/log/Xorg.0.log.old aschuring@neminis:~$ startx -- -logfile /tmp/Xorg.log [...] Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) the -logfile option makes X drop privileges. aschuring@neminis:~$ ls -l /dev/tty0 crw--- 1 root root 4, 0 Mar 17 12:30 /dev/tty0 If I remember correctly, I first noticed this after I removed xserver-xorg, however reinstalling xserver-xorg does not fix the issue. I may have simply overplayed my hand by pruning too much of the Xorg stack, if so, I'd like some pointers on how to restore previous behaviour. Simply setuid'ing the X binary does not have the desired effect :) Please provide the output of - ls -l /usr/bin/X* /etc/X11/X /etc/X11/Xwrapper.config - cat /etc/X11/Xwrapper.config Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
Hi Julien, Julien Cristau (jcris...@debian.org on 2011-03-18 10:53 +0100): the -logfile option makes X drop privileges. Ah, that explains what the man page was trying to tell me. From the wording there, I had expected Xorg to bail out with an error, not silently drop privileges. Please provide the output of - ls -l /usr/bin/X* /etc/X11/X /etc/X11/Xwrapper.config - cat /etc/X11/Xwrapper.config lrwxrwxrwx 1 root root 13 Dec 5 2009 /etc/X11/X - /usr/bin/Xorg -rw-r--r-- 1 root root 601 Mar 18 01:08 /etc/X11/Xwrapper.config lrwxrwxrwx 1 root root 6 Dec 5 2009 /usr/bin/X11 - ../bin -rwxr-xr-x 1 root root2788 Nov 6 23:54 /usr/bin/XMLRPCsh -rwxr-xr-x 1 root root 1487944 Jan 12 04:50 /usr/bin/Xnest -rwxr-xr-x 1 root root 1774660 Feb 25 16:07 /usr/bin/Xorg The output of the cat command is too wide for my mailer, so I'll attach the file, and give you this instead: aschuring@neminis:~$ grep -v ^# /etc/X11/Xwrapper.config allowed_users=console (note that I have tried with both anyone and console -- choices 2 and 3 from dpkg-reconfigure x11-common -- but neither works). Thanks, Arno Xwrapper.config Description: Binary data
Bug#618733: x11-common: startx as non-root no longer working
On Fri, Mar 18, 2011 at 15:57:51 +0100, Arno Schuring wrote: Hi Julien, Julien Cristau (jcris...@debian.org on 2011-03-18 10:53 +0100): the -logfile option makes X drop privileges. Ah, that explains what the man page was trying to tell me. From the wording there, I had expected Xorg to bail out with an error, not silently drop privileges. Please provide the output of - ls -l /usr/bin/X* /etc/X11/X /etc/X11/Xwrapper.config - cat /etc/X11/Xwrapper.config lrwxrwxrwx 1 root root 13 Dec 5 2009 /etc/X11/X - /usr/bin/Xorg -rw-r--r-- 1 root root 601 Mar 18 01:08 /etc/X11/Xwrapper.config lrwxrwxrwx 1 root root 6 Dec 5 2009 /usr/bin/X11 - ../bin -rwxr-xr-x 1 root root2788 Nov 6 23:54 /usr/bin/XMLRPCsh -rwxr-xr-x 1 root root 1487944 Jan 12 04:50 /usr/bin/Xnest -rwxr-xr-x 1 root root 1774660 Feb 25 16:07 /usr/bin/Xorg you're missing /usr/bin/X? Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
you're missing /usr/bin/X? Yes, it appears so: aschuring@neminis:~$ file /usr/bin/X /usr/bin/X: ERROR: cannot open `/usr/bin/X' (No such file or directory) aschuring@neminis:~$ apt-file search /usr/bin/X | grep -w X xserver-xorg: /usr/bin/X But that shouldn't really be surprising given that xserver-xorg is not installed. Like I said, reinstalling xserver-xorg does not help, at least not by itself. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
On Fri, Mar 18, 2011 at 23:14:11 +0100, Arno Schuring wrote: you're missing /usr/bin/X? Yes, it appears so: aschuring@neminis:~$ file /usr/bin/X /usr/bin/X: ERROR: cannot open `/usr/bin/X' (No such file or directory) aschuring@neminis:~$ apt-file search /usr/bin/X | grep -w X xserver-xorg: /usr/bin/X But that shouldn't really be surprising given that xserver-xorg is not installed. Like I said, reinstalling xserver-xorg does not help, at least not by itself. Well, X not working when xserver-xorg is not installed is kinda the expected result. Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
Thusly spoke Julien Cristau (jcris...@debian.org on 2011-03-18 23:18 +0100): On Fri, Mar 18, 2011 at 23:14:11 +0100, Arno Schuring wrote: you're missing /usr/bin/X? Yes, it appears so: aschuring@neminis:~$ file /usr/bin/X /usr/bin/X: ERROR: cannot open `/usr/bin/X' (No such file or directory) aschuring@neminis:~$ apt-file search /usr/bin/X | grep -w X xserver-xorg: /usr/bin/X But that shouldn't really be surprising given that xserver-xorg is not installed. Like I said, reinstalling xserver-xorg does not help, at least not by itself. Well, X not working when xserver-xorg is not installed is kinda the expected result. Yet, I have no issues with X when started through my ?dm flavour of the month (currently gdm3). Cue eerie twilight-zone soundtrack... Maybe I'm just misreading this, but from the changelog I had assumed that not having xserver-xorg installed is a valid configuration: xorg-server (2:1.9.4-2) unstable; urgency=low * Put an end to the dependency hell! Now that we have proper dependencies between drivers and the server, remove xserver-xorg from xserver-xorg-core's Depends (Closes: #362313). In a nutshell, one may want to choose between installing: - xserver-xorg-core: the server itself, with no strings attached. - xserver-xorg: pulls the server and drivers, contains the X wrapper and some documentation. - xorg: pulls xserver-xorg as well as various X11 clients and fonts. -- Cyril Brulebois k...@debian.org Wed, 16 Feb 2011 23:17:07 +0100 Nevertheless, the original bug still stands: I can't startx as normal user even with xserver-xorg installed. I still get the same error about not being able to move/rename Xorg.0.log... aschuring@neminis:~$ ls -l /usr/bin/X -rwsr-sr-x 1 root root 7052 Feb 25 22:20 /usr/bin/X Regards, Arno -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#618733: x11-common: startx as non-root no longer working
Arno Schuring aelschur...@hotmail.com (19/03/2011): Maybe I'm just misreading this, but from the changelog I had assumed that not having xserver-xorg installed is a valid configuration: xorg-server (2:1.9.4-2) unstable; urgency=low * Put an end to the dependency hell! Now that we have proper dependencies between drivers and the server, remove xserver-xorg from xserver-xorg-core's Depends (Closes: #362313). In a nutshell, one may want to choose between installing: - xserver-xorg-core: the server itself, with no strings attached. - xserver-xorg: pulls the server and drivers, contains the X wrapper and some documentation. […] (Since I wrote that…) you assumed correctly, that is a valid configuration. But that means you get to figure out how to run the server yourself. Nevertheless, the original bug still stands: I can't startx as normal user even with xserver-xorg installed. I still get the same error about not being able to move/rename Xorg.0.log... With just startx, from a console? With both anybody and console? KiBi. signature.asc Description: Digital signature
Bug#618733: x11-common: startx as non-root no longer working
Package: x11-common Version: 1:7.5+8 Severity: minor It appears to be no longer possible to start X as non-root user, regardless of the x11-common configuration. I don't use this too often, so I can't say exactly when it broke. I do remember that this worked fine before Squeeze was released though. aschuring@neminis:~$ startx [...] Fatal server error: Cannot move old log file /var/log/Xorg.0.log to /var/log/Xorg.0.log.old aschuring@neminis:~$ startx -- -logfile /tmp/Xorg.log [...] Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) aschuring@neminis:~$ ls -l /dev/tty0 crw--- 1 root root 4, 0 Mar 17 12:30 /dev/tty0 If I remember correctly, I first noticed this after I removed xserver-xorg, however reinstalling xserver-xorg does not fix the issue. I may have simply overplayed my hand by pruning too much of the Xorg stack, if so, I'd like some pointers on how to restore previous behaviour. Simply setuid'ing the X binary does not have the desired effect :) Finally: I notice that the bugscript for x11-common seems very tight-lipped, so here are at least all X components currently installed: ii libx11-6 2:1.4.1-5 X11 client-side library ii libx11-data 2:1.4.1-5 X11 client-side library ii libx11-xcb1 2:1.4.1-5 Xlib/XCB interface library ii x11-apps 7.6+4 X applications ii x11-common1:7.6+4 X Window System (X.Org) infrastructure ii x11-session-utils 7.6+1 X session utilities ii x11-utils 7.6+1 X11 utilities ii x11-xfs-utils 7.6+1 X font server utilities ii x11-xkb-utils 7.6+2 X11 XKB utilities ii x11-xserver-utils 7.6+1 X server utilities ii xserver-common2:1.9.99.903-1common files used by various X servers rc xserver-xorg 1:7.6+4 the X.Org X server ii xserver-xorg-core 2:1.9.99.903-1Xorg X server - core server ii xserver-xorg-input-evdev 1:2.6.0-3 X.Org X server -- evdev input driver ii xserver-xorg-video-radeon 1:6.14.0-1+exp2 X.Org X server -- AMD/ATI Radeon display driver -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (900, 'stable'), (300, 'squeeze'), (300, 'unstable'), (200, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.38-rc8+ (PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages x11-common depends on: ii debconf [debconf-2.0] 1.5.38 Debian configuration management sy ii lsb-base 3.2-27 Linux Standard Base 3.2 init scrip x11-common recommends no packages. x11-common suggests no packages. -- debconf information: * x11-common/xwrapper/allowed_users: Anybody x11-common/xwrapper/actual_allowed_users: anybody x11-common/x11r6_bin_not_empty_move: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org