我可以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日志看起来不一样
您应该仔细检查对的权限/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
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句