Arch:无法让 X 在普通用户下工作

Arch:无法让 X 在普通用户下工作

我可以startx作为 root,但不能作为普通用户。我比较了日志,有区别:

根:

#> cat Xorg.0.log | egrep '(EE|WW)'
[  1507.647] Current Operating System: Linux hostname 3.17.2-1-ARCH #1 SMP PREEMPT Thu Oct 30 20:49:39 CET 2014 x86_64
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1507.658] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1507.668] (WW) Falling back to old probe method for fglrx
[  1507.672] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[  1507.674] (WW) fglrx(0): board is an unknown third party board, chipset is supported
[  1507.864] (WW) fglrx(0): Option "VendorName" is not used
[  1507.864] (WW) fglrx(0): Option "ModelName" is not used
[  1508.002] (EE) AIGLX error: failed to open /usr/X11R6/lib64/modules/dri/fglrx_dri.so, error[/usr/X11R6/lib64/modules/dri/fglrx_dri.so: cannot open shared object file: No such file or directory]

(并且 X 开始)

普通用户:

$> cat Xorg.0.log | egrep '(EE|WW)'
[   533.461] Current Operating System: Linux hostname 3.17.2-1-ARCH #1 SMP PREEMPT Thu Oct 30 20:49:39 CET 2014 x86_64
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   533.465] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   533.482] (WW) Falling back to old probe method for fglrx
[   533.486] (WW) LoadKernelModule: Setting of real/effective user Id to 0/0 failed
[   533.487] ukiDynamicMajor: found major device number 251
[   533.488] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[   533.488] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   533.489] (WW) LoadKernelModule: Setting of real/effective user Id to 0/0 failed
[   533.490] ukiDynamicMajor: found major device number 251
[   533.490] (EE) fglrx(0): The graphics processor is already set to console mode, set X mode fail. Cannot start X.
[   533.490] (EE) fglrx(0): PreInit failed
[   533.490] (EE) Screen(s) found, but none have a usable configuration.
[   533.490] (EE) 
[   533.490] (EE) no screens found(EE) 
[   533.490] (EE) 
[   533.490] (EE) Please also check the log file at "/home/me/.local/share/xorg/Xorg.0.log" for additional information.
[   533.490] (EE) 
[   533.492] (EE) Server terminated with error (1). Closing log file.

第一个区别是

LoadKernelModule: Setting of real/effective user Id to 0/0 failed

我该怎么做才能让它发挥作用?

类似问题:为什么我的 X Server 无法以普通用户身份启动?

不会是同样的问题吗?他的 x 日志看起来不一样

答案1

您应该仔细检查 的权限/usr/bin/X,它应该设置了 SUID/GUID 位:

-rwsr-sr-x 1 root root 10184 Jan  3  2013 /usr/bin/X*

改变与sudo chmod ug+s /usr/bin/X

相关内容