From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 18:20:19 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 296B7106564A for ; Fri, 4 Apr 2008 18:20:19 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7B01C8FC21 for ; Fri, 4 Apr 2008 18:20:18 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m34IKC4B052542; Fri, 4 Apr 2008 19:20:13 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.2 smtp.infracaninophile.co.uk m34IKC4B052542 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1207333213; bh=ODavm7qY6f0vmO xEvMz+WRe+yc9pCZ+RdkU+kWoyecc=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<47F6715C.5060905@infracaninophile.co.uk>|Date:=20Fri,=2 004=20Apr=202008=2019:20:12=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.12=20(X11/20080310)|MIME-Version:=201 .0|To:=20=3D?ISO-8859-1?Q?Frank_Wi=3DDFmann?=3D=20|CC:=20freebsd-questions@freebsd.org|Subject:=20Re:=20Solve d=20partly|References:=20<47F52A0C.70201@web.de>=20<47F66B40.901030 3@web.de>|In-Reply-To:=20<47F66B40.9010303@web.de>|X-Enigmail-Versi on:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha 256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bo undary=3D"------------enig0F368391122030F0BE048C83"; b=G9egU5XmCZ5d VOJgec3kaX27w7naOonBJBtMRk9C09wAY1OzIMZ+iXEyXoyn3ciQcwCA8clNhQGiYrQ A2EJoVLf6j/oZ7yG6Lz7jZtSE5ZB6y0QkFoNU0eipqYsCW1XnCBnXtRf8f3Wfm3EYDr Y1J5li4dackzzjU7HXZkPyUi8= Message-ID: <47F6715C.5060905@infracaninophile.co.uk> Date: Fri, 04 Apr 2008 19:20:12 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.12 (X11/20080310) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Frank_Wi=DFmann?= References: <47F52A0C.70201@web.de> <47F66B40.9010303@web.de> In-Reply-To: <47F66B40.9010303@web.de> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig0F368391122030F0BE048C83" X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 04 Apr 2008 19:20:13 +0100 (BST) X-Virus-Scanned: ClamAV 0.92.1/6589/Fri Apr 4 18:21:18 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk 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:20:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0F368391122030F0BE048C83 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Frank Wi=DFmann wrote: > Frank Wi=DFmann wrote: >> Hi all! >> Hope there's somebody out there who can help me with the following=20 >> problem: >> When I type "startx" as root all is coming up as expected, the=20 >> X-Server and twm as WM. When I stop it, log in as a normal user and do= =20 >> the same there is only a grey screen with a mouse-cursor coming up and= =20 >> doing nothing until I kill the X-Server with Ctrl-Alt-Backspace. On=20 >> the original screen from which I tried to start is shown the following= =20 >> error message: >> >> AUDIT: Thu Apr 3 20:34:48 2008 836 X: client 1 rejected from localhost= =20 >> (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"=20 >> 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=20 >> "freebsd-questions-unsubscribe@freebsd.org" >> >=20 > To your information: >=20 > 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=20 > 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 n= o=20 > need to think about it anymore. I'm just curious why it didn't work the= =20 > other way round. > So, happy weekend for all of you and a big "Thank you" to all who let=20 > work their mind to help me. Did you install X setuid root? If you're using xdm(1) or one of the othe= r similar display managers that are started out of ttys(5) then X is starte= d by a root process anyhow, and doesn't need to be setuid. If you intend t= o use startx(1) then X needs to be setuid for mortal users to be able to st= art it. To change the setting: make config in /usr/ports/x11-servers/xorg-server and then reinstall the xorg-server port. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig0F368391122030F0BE048C83 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkf2cVwACgkQ8Mjk52CukIzpjQCdHEsUGlFa+d679MVUZo1utkwQ C6sAmwc8EvwwHSG34eyf/5XFkvyPFN15 =FU4+ -----END PGP SIGNATURE----- --------------enig0F368391122030F0BE048C83--