11.11.2019 19:05, simonizor пишет:
I am getting this also. It only seems to happen on TTY1.
Immediately after user logs in on tty1 /dev/tty1 has absolutely weird permissions - no write access to user - which causes open in Xorg to fail. What is even more strange, immediately after startx finishes permissions are reset to normal - and second startx succeeds. I have no idea what changes permissions. It is not startx, it is not logind, it is not udev. c--xr-xr-T 1 bor tty 4, 1 Nov 11 21:03 /dev/tty1 bor@tw:~> startx hostname: Name or service not known xauth: file /home/bor/.serverauth.2565 does not exist X.Org X Server 1.20.5 X Protocol Version 11, Revision 0 Build Operating System: openSUSE SUSE LINUX Current Operating System: Linux tw.0.2.15 5.3.8-1-default #1 SMP Wed Oct 30 07:12:05 UTC 2019 (ea4c828) x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.3.8-1-default root=UUID=cc072e56-f671-4388-a4a0-2ffee7c98fdb splash=silent quiet showopts 3 Build Date: 22 October 2019 12:00:00PM Current version of pixman: 0.36.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/bor/.local/share/xorg/Xorg.0.log", Time: Mon Nov 11 21:03:13 2019 (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/home/bor/.local/share/xorg/Xorg.0.log" for additional information. (EE) VGA Arbitration: Cannot restore default device. (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error ------------------------------------------------------------------------------------------- xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason? If so either use a display manager (strongly recommended) or adjust /etc/permissions.local and run "chkstat --system --set" afterwards Couldn't get a file descriptor referring to the console bor@tw:~> ll /dev/tty1 crw--w---- 1 root tty 4, 1 Nov 11 21:03 /dev/tty1 bor@tw:~> And grepping strace result for tty1 2103 stat("/dev/tty1", {st_mode=S_IFCHR|S_ISVTX|0154, st_rdev=makedev(0x4, 0x1), ...}) = 0 2103 write(1, "/dev/tty1\n", 10 <unfinished ...> 2100 <... read resumed>"/dev/tty1\n", 128) = 10 2104 execve("/usr/bin/expr", ["expr", "/dev/tty1", ":", "/dev/tty[0-9][0-9]*$"], 0x5570fc602490 /* 65 vars */) = 0 2106 write(1, "/dev/tty1\n", 10 <unfinished ...> 2107 read(0, "/dev/tty1\n", 98304) = 10 2125 openat(AT_FDCWD, "/dev/tty1", O_RDWR|O_NONBLOCK) = -1 EACCES (Permission denied) 2125 is Xorg. Hmm ... same weird permissions also on tty2 where I logged in as root. This is in QEMU VM, so no Intel/nVidia at all. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org