From owner-freebsd-questions@FreeBSD.ORG Fri Aug 1 07:53:11 2003 Return-Path: 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 9690737B401 for ; Fri, 1 Aug 2003 07:53:11 -0700 (PDT) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 055FF43FAF for ; Fri, 1 Aug 2003 07:53:11 -0700 (PDT) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) Sender: dpelleg@gs166.sp.cs.cmu.edu To: stan References: <20030801143246.GA30259@teddy.fas.com> From: Dan Pelleg Date: 01 Aug 2003 10:52:34 -0400 In-Reply-To: <20030801143246.GA30259@teddy.fas.com> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Free BSD Questions list Subject: Re: ssh/root and remote X sessiosn X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 14:53:11 -0000 stan writes: > I have my FreebSD machines set up in the current "preferred" (IE default) > ssh/tty setup which prohibits remote ssh logins. So to get to root I ssh as > my normal user, and su -. All is well, unless I need to run a client as > root. Even manually setting the DISPLAY variable does not seem to allow > this. > > How can I make this work? > You need to get xauth to work. Assuming you're ssh-ing as user USER, this is an easy to to achieve this. Type this after the "su". For csh or tcsh: setenv HOME ~USER For bash it's "export HOME=~USER". -- Dan Pelleg