Problem starting X as user

Mark Moellering mark at msen.com
Thu Apr 3 20:46:26 UTC 2008


On Thursday 03 April 2008 04:33:36 pm Frank Wißmann wrote:
> Roland Smith wrote:
> > On Thu, Apr 03, 2008 at 09:03:40PM +0200, Frank Wißmann wrote:
> >> Hi all!
> >> Hope there's somebody out there who can help me with the following
> >> problem: When I type "startx" as root all is coming up as expected, the
> >> X-Server and twm as WM. When I stop it, log in as a normal user and do
> >> the same there is only a grey screen with a mouse-cursor coming up and
> >> doing nothing until I kill the X-Server with Ctrl-Alt-Backspace. On the
> >> original screen from which I tried to start is shown the following error
> >> message:
> >>
> >> AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost
> >> (uid 1001)
> >> Auth name: XDM-AUTHORIZATION-1 ID: -1
> >> Xlib: connection to "0:0" refused by server
> >> Xlib: Protocol not supported by server
> >>
> >> .xinitrc and .xsession both have the same contens "exec startxfce4" and
> >> the permissions "rwxr-xr-x".
> >>
> >> Any thoughts please?
> >
> > Does the regular user have an ~/.Xauthority file? If not, you might have
> > to create it with xauth(1), or copy it from the root user.
> >
> > Roland
>
> Yes, there is one with the same permissions as the above mentioned files.
>
> Greetings
>
> Frank

Frank,

	Try removing the "exec" and have the .xinitrc just read 

startxfce4

	The only other thing I can think of is editing the file in a terminal.  There 
have been some system files that if I edit in a graphical editor (Kedit on my 
KDE system) some extra characters somehow get in there and create odd 
problems, whereas if I use a text editor (edit, vi, etc) things work fine.

Mark Moellering


More information about the freebsd-questions mailing list