It looks to me as though you're consistently logging in as root, doing an
"su" to another user, and then trying to start X. That won't work (well,
at least not without some tweaks), as you've discovered.
Do the following:
Log out, getting back to initial login prompt.
DO NOT LOG IN AS ROOT!
Log in as the desired user.
then "startx"
Now if you need to be root for something, make an xterm window and do an
"su" there, or login as root on one of the virtual consoles (CTRL-ALT-F2 ..
CTRL-ALT-F6) and use CTRL-ALT-F7 to get back to the window system.
When you login to Linux initially as root, root maintains ownership of the
console, after you do the "su" and that's presumably why X11 didn't start,
lacking permissions to the console.
Let me know whether this solves your problem.
pete peterson
GenRad, Inc.
7 Technology Park Drive
Westford, MA 01886-0033
[EMAIL PROTECTED] or [EMAIL PROTECTED]
+1-978-589-7478 (GenRad); +1-978-256-5829 (Home: Chelmsford, MA)
+1-978-589-2088 (Closest FAX); +1-978-589-7007 (Main GenRad FAX)
> Date: Tue, 30 May 2000 17:54:43 +0530
> From: "dattatraya" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: x windows problem
>
> well i am using rh 6.0. i created a non privileged user and try to work in
> xwindows with it. but i gothe following message.well the strange characters
> u see maybe due to the fact that i copied the file into winndows after
> mounting windows in linux.
>
> >>Script started on Sat May 27 13:53:26 2000
> >>[root@localhost /root]# su scum
> >>[scum@localhost /root]$ startx
> >>Authentication failed
> >>
> >>_X11TransSocketUNIXConnect: Can't connect: errno = 111
> >>giving up. xinit: Connection refused (errno 111): unable to connect to X
> server xinit: No >>such process (errno 3): Server error.
> >>[scum@localhost /root]$ su
> >>Password:
> >>[root@localhost /root]#
>
> then i tried to run the startx command in the home directory of the user but
> no success. i got the messages as indicated below.
>
> >>[root@localhost /root]# su scum
> >>[scum@localhost /root]$ cd /home/scum
> >>[scum@localhost scum]$ startx
> >>Authentication failed
> >>
> >>_X11TransSocketUNIXConnect: Can't connect: errno = 111
> >>giving up. xinit: Connection refused (errno 111): unable to connect to X
> server xinit: No >>such process (errno 3): Server error.
> >>[scum@localhost scum]$ su
> >>Password:
> >>[root@localhost scum]# startx
>
> well i've sent this problem to this list thrice but didnt get a soln. is the
> problem too preliminary? if so please guide me to where i could find the
> soln. i am a newbie to linux and my machine has two os' linux and win98
>
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.