From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 13:37:38 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 C080416A419 for ; Thu, 10 Jan 2008 13:37:38 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57004.mail.re3.yahoo.com (web57004.mail.re3.yahoo.com [66.196.97.108]) by mx1.freebsd.org (Postfix) with SMTP id 4FEFB13C45D for ; Thu, 10 Jan 2008 13:37:38 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 21969 invoked by uid 60001); 10 Jan 2008 13:37:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ZbfMoQnCfk9PRi8uLdZ3f3fM6N6kxvsLyCtNzssNvp6E8tYFI+hZ4KrxLhXCGpLoGLCxujHEA8rGRM+AUAMEaI3iDlKQTEiuDsJzBWRLRUtPWBC+bHw1kFUcFH4aqiw9Kuz2cIKhJIS6RRlpgS3nxLPMHRtHAHUHR1Fs3nD2vAQ=; X-YMail-OSG: r.rBbqsVM1liYe1HlAcHuho15A_dqcHi6125GFBM06FdHxFZ_EMHML8SgmbFZtU2gHOBZ3Ye.gKd6qowAwwegiIxUXXZCSz.Axhu2wjHWkvSuN46CjCslcKDnQo7HDZ_CSETrm5Nk.TGew1tYH.QsI7v Received: from [165.21.154.17] by web57004.mail.re3.yahoo.com via HTTP; Thu, 10 Jan 2008 05:37:37 PST Date: Thu, 10 Jan 2008 05:37:37 -0800 (PST) From: Unga To: freebsd-questions@freebsd.org In-Reply-To: <200801100700.35961.freebsd08@dfwlp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <588148.21737.qm@web57004.mail.re3.yahoo.com> Subject: Re: How to run GUI under root in FreeBSD? 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: Thu, 10 Jan 2008 13:37:38 -0000 --- Jonathan Horne wrote: > On Thursday 10 January 2008 06:52:38 am Unga wrote: > > Hi all > > > > I want to run ddd debugger under root. > > > > I ran following before become root: > > xhost localhost > > > > Under root: > > echo $DISPLAY > > > > :0.0 > > > > When I run ddd: > > Xlib: connection to ":0.0" refused by server > > Xlib: No protocol specified > > > > Error: Can't open display: :0.0 > > > > What else I should do in FreeBSD? I'm running > > 7.0-PRERELEASE on i386 with KDE 3.5.8. > > > > Appreciate very much a reply. > > > > Best Regards > > Unga > > im not sure if its the best or correct way, but i > was able to run an app (not > ddd, i dont have that on my system) as root by doing > this: > > (as my user) > xhost + > > (then su - up to root) > xcalc -display :0 > > nothing else to it. also, you might take a look at > the man for xhost to see > how to narrow down the access, because the '+' only > gives you a nice > little "you are now wide open for connections" > message. > Thanks, yep, after the "access control disabled" I can run ddd as root. Anyway, I'll read the xhost man page and lets see what others got to say too. Take care. Regards Unga ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping