From owner-freebsd-questions Sat Feb 15 11:11:52 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66C3837B401 for ; Sat, 15 Feb 2003 11:11:49 -0800 (PST) Received: from disk.fnug.net (213.237.71.107.adsl.amb.worldonline.dk [213.237.71.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D3D243F3F for ; Sat, 15 Feb 2003 11:11:47 -0800 (PST) (envelope-from paul@fnug.net) Received: from fnug.net (unknown [192.168.0.3]) by disk.fnug.net (Postfix) with ESMTP id D19734497; Sat, 15 Feb 2003 20:11:45 +0059 (CET) Message-ID: <3E4E90F1.4010406@fnug.net> Date: Sat, 15 Feb 2003 20:11:45 +0100 From: "Paul A. Mayer" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030203 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: Dennis <4real@home.nl> Cc: kitsune , freebsd-questions@FreeBSD.ORG Subject: Re: Running X program under different user References: <3E4E7786.2010809@home.nl> <20030215070149.7b96478d.kitbsdlists@HotPOP.com> <3E4E82C1.9020108@home.nl> In-Reply-To: <3E4E82C1.9020108@home.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Did you try to call: xhost +localhost before your su command? Looks like your X session is not letting your other user access your display. $.02, hope it helps. /Paul Dennis wrote: > kitsune wrote: > >> On Sat, 15 Feb 2003 18:23:18 +0100 >> Dennis <4real@home.nl> wrote: >> >> >> >>> Hi, >>> >>> I'm a former kde user, using Windowmaker now.... >>> >>> And in the past i always used RUN in kde, to startup my favourite >>> irc client... >>> >>> RUN had several options to execute programs under a different user >>> etc, which comes in handy when using IRC... >>> >> >> >> if that run thing was a command that can be done then it can still be >> used under windowmaker... >> >> >> >>> But now i need to use SU i think to accomplish this, but it doesnt >>> work :( >>> >> >> >> wierd it works here... >> su -c >> >> example... >> su kitsune -c scilab >> this will su user kitsune and then run scilab >> >> >> >>> Does anyone know which command i can use to execute an X program >>> under a different user? >>> >> >> >> this will work too... >> ssh 127.0.0.1 -X -l >> the -X turns on X forwarding >> >> >> >> > when i try su [user] -c xchat, i get this error: > > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > > Gtk-WARNING **: cannot open display: :0.0 > > RUN in kde was a kde-specific command...i think it was in the KDE Panel > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message