satimis 发表于 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)

satimis 发表于 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

sinclair 发表于 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

satimis 发表于 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

sinclair 发表于 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:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x: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-x2 sinclair sinclair 80 2005-08-30 23:41 .
drwxr-xr-x4 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
$

satimis 发表于 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

sinclair 发表于 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-x26 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 sinclair80 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

satimis 发表于 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

sinclair 发表于 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.
页: 1 [2]
查看完整版本: LFS6.1普通用户不能登录X-Windows?