QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: sinclair

LFS6.1普通用户不能登录X-Windows?

[复制链接]
发表于 2005-8-30 16:59:30 | 显示全部楼层
Hi sinclair,

I already solved my problem - start X-window as "user".  If you have not solved yours please try following steps;

Started BLFS 6.1 (assuming it can be started)
Login as "root"
run
# chown --recursive sinclair:sinclair /home/sinclair
(should have no printout.  If there is any, please posting it on the Forum)

logout "root" and "relogin" as sinclair
$ startx

B.R.
satimis
(P.S. in my case, no /home/satimis/.Xauthority file)
回复

使用道具 举报

发表于 2005-8-30 17:33:57 | 显示全部楼层
Hi sinclair,

I already solved my problem. If you have not solved yours please try following steps;

Started BLFS 6.1 (assuming it can be started)
Login as "root"
run
# /usr/sbin/groupadd sinclair -g 100
# chown --recursive sinclair:sinclair /home/sinclair
(should have no printout. If there is any, please posting it on the Forum)

logout "root" and "relogin" as sinclair
$ startx

B.R.
satimis
P.S. in my case, /home/satimis/.Xauthority file not available
回复

使用道具 举报

 楼主| 发表于 2005-8-30 21:42:08 | 显示全部楼层
Hi satimis
thanks for you advice
root@Fine-Lok:~# /usr/sbin/groupadd sinclair -g 100
groupadd:gid 100 并不唯一
root@Fine-Lok:~# chown --recursive sinclair:sinclair /home/sinclair
chown: ‘sinclair:sinclair’: 无效的组
root@Fine-Lok:~#

i can't solved my problem.
login as "sinclair"
$startx
same error
回复

使用道具 举报

发表于 2005-8-30 22:53:16 | 显示全部楼层
Hi sinclair,

Did you run all suggested commands on BLFS 6.1 as "root", not on chroot environment?

root@Fine-Lok:~# /usr/sbin/groupadd sinclair -g 100
groupadd:gid 100 并不唯一

try
# cat /etc/group

root@Fine-Lok:~# chown --recursive sinclair:sinclair /home/sinclair
chown: ‘sinclair:sinclair’: 无效的组

try
# ls -al /home/sinclair

if /home/sinclair directory not found, then run
# install -d -m755 --owner sinclair --group sinclair /home/sinclair


Login as sinclair and run following commands
$ echo $HOME
$ echo $XAUTHORITY
$ xauth -b -f /home/sinclair/.Xauthority
$ xauth list :0
$ xauth -q <<EOF
> add :0 . 1234567890
> EOF

Please post their output on the forum

Finally try
$ startx
also post the output

satimis
回复

使用道具 举报

 楼主| 发表于 2005-8-31 00:28:09 | 显示全部楼层
Hi satimis
thanks for you advice.
login as "root"
root@Fine-Lok:~# userdel sinclair
root@Fine-Lok:~# groupadd sinclair -g 100
root@Fine-Lok:~# useradd -s /bin/bash -g sinclair -m -k /dev/null sinclair
root@Fine-Lok:~# passwd sinclair
root@Fine-Lok:~# chown --recursive sinclair:sinclair /home/sinclair
root@Fine-Lok:~# cat /etc/group
root:0:
bin:1:
sys:2:
kmem:3:
tty:4:
tape:5:
daemon:6:
floppy:7:
disk:8:
lp:9:
dialout:x:10:

audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:


sinclair:x:100:
root@Fine-Lok:~# ls -al /home/sinclair
总用量 4
drwxr-xr-x  2 sinclair sinclair 80 2005-08-30 23:41 .
drwxr-xr-x  4 root     root     96 2005-08-30 23:16 ..
-rw-------  1 sinclair sinclair 42 2005-08-30 23:41 .Xauthority
root@Fine-Lok:~#

login as "sinclair"
$ echo $HOME
/home/sinclair
$ echo $XAUTHORITY
(No printout)
$ xauth -b -f /home/sinclair/.Xauthority
Attempting to break lock on authority file /home/sinclair/.Xauthority
xauth: creating new authority file /home/sinclair/.Xauthority
using authority file /home/sinclair/.Xauthority
xauth>exit
$ xauth list :0
xauth: creating new authority file /home/sinclair/.Xauthority
$ xauth -q <<EOF
> add :0 . 1234567890
> EOF
xauth: creating new authority file /home/sinclair/.Xauthority
$startx
Fatal server error:
cannot move old log file ("var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
please consult the The X.org Foundation support
                  at   http://wiki.X.org
for help
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): server error
$
回复

使用道具 举报

发表于 2005-8-31 22:41:51 | 显示全部楼层
Hi sinclair,

Boot up BLFS 6.1 and login as root

run
# ls -al /home
post the printout

delele .Xauthority from
/home/sinclair/.Xauthority

logout and relogin as sinclair

run
$ startx

B.R.
satimis
回复

使用道具 举报

 楼主| 发表于 2005-9-1 09:56:34 | 显示全部楼层
Hi satimis
thanks for you advice.
root@Fine-Lok:~# ls -al /home
总用量 1
drwxr-xr-x   4 root     root      96 2005-08-31 00:12 .
drwxr-xr-x  26 root     root     888 2005-09-01 17:41 ..
drwxr-xr-x   2 edwin    sinclair 136 2005-08-26 20:12 edwin
drwxr-xr-x   2 sinclair sinclair  80 2005-09-01 09:47 sinclair
root@Fine-Lok:~#rm /home/sinclair/.Xauthority

login as "sinclair"
$startx
xauth: creating new authority file /home/sinclair/.Xauthority
xauth: creating new authority file /home/sinclair/.Xauthority
Fatal server error:
cannot move old log file ("var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
please consult the The X.org Foundation support
at http://wiki.X.org
for help
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): server error
回复

使用道具 举报

发表于 2005-9-1 10:43:27 | 显示全部楼层
Hi sinclair,

Fatal server error:
cannot move old log file ("var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old")
It seems the permission problem.

1st run
# chmod u+s /usr/X11R6/bin/Xorg

then relogin as "sinclair" and try again
$ startx

If still unsolved, check the permissions elsewhere. e.g. /var/log/Xorg.0.log.old to see whether it is writable.  The permission of /var/log directory 0755?  Is the /var/log directory mounted on a writable partition? (if having several partitions), etc.

Is the HD full?  run
# df -Th

etc.

B.R.
satimis
回复

使用道具 举报

 楼主| 发表于 2005-9-1 13:04:24 | 显示全部楼层
Hi satimis
thanks for you support and advice
# chmod u+s /usr/X11R6/bin/Xorg

after i ran above command. My problem has been solved.
WOW THANKS AGAIN.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-19 21:19 , Processed in 0.057815 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表