From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 13:26:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59B7C106566B for ; Fri, 4 Apr 2008 13:26:40 +0000 (UTC) (envelope-from frank.wissmann41@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.freebsd.org (Postfix) with ESMTP id 2312C8FC13 for ; Fri, 4 Apr 2008 13:26:40 +0000 (UTC) (envelope-from frank.wissmann41@web.de) Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id 9D445D5AAB04; Fri, 4 Apr 2008 15:26:38 +0200 (CEST) Received: from [77.134.43.78] (helo=willows.einundvierzig.org) by smtp07.web.de with asmtp (WEB.DE 4.109 #226) id 1JhlwE-0008K7-00; Fri, 04 Apr 2008 15:26:38 +0200 Message-ID: <47F62D6A.1070000@web.de> Date: Fri, 04 Apr 2008 15:30:18 +0200 From: =?ISO-8859-1?Q?Frank_Wi=DFmann?= User-Agent: Thunderbird 2.0.0.9 (X11/20080213) MIME-Version: 1.0 To: Warren Block References: <47F52A0C.70201@web.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: frank.wissmann41@web.de X-Sender: frank.wissmann41@web.de X-Provags-ID: V01U2FsdGVkX1+m3xEvrzFnLr+xvuWKDjtb4VQ85mU3ZGvo5afN p8x1V6AqkhTxgmUCccQiIhhVRqXCVYeAULFTPYkFxGbt3aw3v3 XnWV3V/wApVgy5is8AJQ== Cc: freebsd-questions@freebsd.org Subject: Re: Problem starting X as user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 13:26:40 -0000 Warren Block wrote: > On Thu, 3 Apr 2008, Frank Wi?mann wrote: > >> 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? > > My user .xsession is: > > #!/bin/sh > > # WB: allow other user to use X on localhost > xhost +localhost > > exec /usr/local/bin/startxfce4 > > -Warren Block * Rapid City, South Dakota USA > There sure must be a problem with permissions. I can start the X-Server as "root" and execute "startxfce4" and it works fine, but there is no WM as a user. Where do I have to look? Greetings Frank