From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 18:45:47 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 8855A1065671 for ; Fri, 4 Apr 2008 18:45:47 +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 190AE8FC1F for ; Fri, 4 Apr 2008 18:45:47 +0000 (UTC) (envelope-from frank.wissmann41@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 60991D5B06B6; Fri, 4 Apr 2008 20:45:45 +0200 (CEST) Received: from [77.134.43.78] (helo=willows.einundvierzig.org) by smtp05.web.de with asmtp (WEB.DE 4.109 #226) id 1Jhqv2-0006l3-00; Fri, 04 Apr 2008 20:45:44 +0200 Message-ID: <47F67834.3010401@web.de> Date: Fri, 04 Apr 2008 20:49:24 +0200 From: =?ISO-8859-1?Q?Frank_Wi=DFmann?= User-Agent: Thunderbird 2.0.0.9 (X11/20080213) MIME-Version: 1.0 To: Matthew Seaman References: <47F52A0C.70201@web.de> <47F66B40.9010303@web.de> <47F6715C.5060905@infracaninophile.co.uk> In-Reply-To: <47F6715C.5060905@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: frank.wissmann41@web.de X-Sender: frank.wissmann41@web.de X-Provags-ID: V01U2FsdGVkX1/bGglaFLa8iLKD7R4yUpBt0spBXQ2NA/Df88cE 9hdKbcxKFxBEeA4An2g+/nDEjwYx7tHpJHEJmFAsyjFbFhaoWj 0McG1AiXIc5wFzl5F3Dg== Cc: freebsd-questions@freebsd.org Subject: Re: Solved partly 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 18:45:47 -0000 Matthew Seaman wrote: > Frank Wißmann wrote: >> 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? >>> >>> TIA Frank >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> >> To your information: >> >> I just tried out of despair something weird and started my X-Server by >> the /etc/ttys-file and a reboot. Logging iin as root worked as it did >> before but to my astonishment it worked logging in as a user too. So I >> now have a working Xfce environment on my other machine too. There is >> no need to think about it anymore. I'm just curious why it didn't work >> the other way round. >> So, happy weekend for all of you and a big "Thank you" to all who let >> work their mind to help me. > > Did you install X setuid root? If you're using xdm(1) or one of the other > similar display managers that are started out of ttys(5) then X is started > by a root process anyhow, and doesn't need to be setuid. If you intend to > use startx(1) then X needs to be setuid for mortal users to be able to > start > it. > > To change the setting: > > make config > > in /usr/ports/x11-servers/xorg-server and then reinstall the xorg-server > port. > > Cheers, > > Matthew > I don't know for sure. In /etc/make.conf is nothing written that X should be setuid root and that must be the place, or not? Anyway, I want X to be started through a tty like it worked, so I have no intention to change it now that it functions. Greetings Frank