startx results in this: ------------------------------------------------------------------------------- X Window System Version 7.0.0 Release Date: 21 December 2005 X Protocol Version 11, Revision 0, Release 7.0 Build Operating System:Linux 2.6.15-gentoo-r1 i686 Current Operating System: Linux localhost 2.6.15-gentoo-r1 #1 SMP Sun Apr 16 01:17:16 Local time zone must be set--see zic i686 Build Date: 15 September 2006 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Sep 17 12:25:55 2006 (==) Using config file: "/etc/X11/xorg.conf" Fatal server error: xf86OpenConsole: Cannot open virtual console 7 (Permission denied) XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining. ------------------------------------------------------------------------------- Changing permissoin on /dev/tty0 results in this: ------------------------------------------------------------------------------- .....----||----.... Fatal server error: xf86OpenConsole: Cannot open virtual console 7 (Permission denied) XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining. ------------------------------------------------------------------------------- Changing permission on vcs7 doesn't help either. emerge --info Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.5 Last Sync: Fri, 15 Sep 2006 21:50:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i386-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://194.85.81.130/Gentoo ftp://172.16.3.79/gentoo_mirror http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo " LANG="ru_RU.UTF-8" LC_ALL="" LINGUAS="en ru" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://194.85.81.130/gentoo-portage" USE="x86 X alsa arts berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gpm gstreamer gtk hal input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kernel_linux ldap libg++ linguas_en linguas_ru mad mikmod mmx mmx2 mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 video_cards_ati video_cards_fglrx video_cards_nvidia video_cards_radeon video_cards_vesa video_cards_vga video_cards_via video_cards_vmware vorbis win32codecs xine xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(Correction) startx results in this: ------------------------------------------------------------------------------- ... Fatal server error: xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) ....
*** Bug 147899 has been marked as a duplicate of this bug. ***
Post the output of 'ls -l /usr/bin/Xorg /dev/tty0'
(In reply to comment #3) > Post the output of 'ls -l /usr/bin/Xorg /dev/tty0' crwxrwxrwx 1 root root 4, 0 Sep 17 11:37 /dev/tty0 -rwx--x--x 1 root root 1642020 Sep 16 22:01 /usr/bin/Xorg
Well, that is just wrong, Xorg needs SUID... # ls -l /usr/bin/Xorg -rws--x--x 1 root root 1629120 2006-08-27 12:44 /usr/bin/Xorg Change your /dev/tty* permissions back, that won't fix anything. Should be: crw-rw---- 1 root root 4, 0 2006-09-16 03:06 /dev/tty0
Thanks. I'll try this in a couple of minutes. Could you tell me the ls -l /dev/vcs* I've already changed it too :(
crw-rw---- 1 root tty 7, 0 2006-09-16 03:06 /dev/vcs (or just reboot, udev will sanitize your perms)