From owner-freebsd-questions@FreeBSD.ORG Fri May 15 08:45:15 2009 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 E951B106564A for ; Fri, 15 May 2009 08:45:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A6C278FC08 for ; Fri, 15 May 2009 08:45:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-124-142.dynamic.qsc.de [92.195.124.142]) by mx02.qsc.de (Postfix) with ESMTP id BCB4416C036C; Fri, 15 May 2009 10:45:13 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n4F8j6F9025554; Fri, 15 May 2009 10:45:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 15 May 2009 10:45:05 +0200 From: Polytropon To: Pieter Donche Message-Id: <20090515104505.8de53e2c.freebsd@edvax.de> In-Reply-To: References: <4A0D1CC2.8000107@infracaninophile.co.uk> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "mail.list freebsd-questions" Subject: Re: root user, graphical programs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 08:45:16 -0000 On Fri, 15 May 2009 10:38:34 +0200 (CEST), Pieter Donche wrote: > No luck (yet) > I tried both methods, (with xpdf as a graphical program) > The first still gives > # xpdf > Can't open display > > The second method > # xpdf > No protocol specified > Error: Can't open display: :0.0 > > (after su -, $HOME was indeed /root) > (in /root .Xauthority was changed/created, $DISPLAY is :0.0) Maybe very unelegant, but has a chance to work: % su - Password: # cp /home//.Xauthority /root # setenv DISPLAY :0.0 # xpdf This assumes that csh is your dialog shell. If it's not, you may need another syntax to change DISPLAY, e. g. for BASH. It worked in the past, but who knows what still works in X... :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...