From owner-freebsd-questions@FreeBSD.ORG Sat Sep 6 18:06:08 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 61AEF16A4BF for ; Sat, 6 Sep 2003 18:06:08 -0700 (PDT) Received: from praetor.linc-it.com (hardtime.linuxman.net [66.147.26.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D4CD43FCB for ; Sat, 6 Sep 2003 18:06:07 -0700 (PDT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-19-159-39.jan.bellsouth.net [68.19.159.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by praetor.linc-it.com (Postfix) with ESMTP id 5E9D5154F9; Sat, 6 Sep 2003 20:06:06 -0500 (CDT) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 097EC20F2A; Sat, 6 Sep 2003 20:06:04 -0500 (CDT) Date: Sat, 6 Sep 2003 20:06:03 -0500 From: "Matthew D. Fuller" To: "Steven G. Kargl" Message-ID: <20030907010603.GB96960@over-yonder.net> References: <20030906120317.GA78469@happy-idiot-talk.infracaninophile.co.uk> <200309061511.h86FBLep065335@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309061511.h86FBLep065335@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.1i-fullermd.1 X-Editor: vi X-OS: FreeBSD cc: freebsd-questions@freebsd.org Subject: Re: PAM, X11, and su as a normal user? 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: Sun, 07 Sep 2003 01:06:08 -0000 On Sat, Sep 06, 2003 at 08:11:21AM -0700 I heard the voice of Steven G. Kargl, and lo! it spake thus: > > Thanks for the hint. I took the rather draconian action of > deleting user sgk's .Xauthority file. Then I used xauth to > merge in user kargl's entire .Xauthority. This appears to > work only if I use "su -l sgk". I guess I'm inheriting > something in the environment that X doesn't lik when I > use "su sgk". FWIW, I just plain 'su' to root (toor, rather, but that's not relevant) and use a one-off script to merge keys for running X apps: root% cat /root/xauthset #!/bin/sh xauth -f /home/fullermd/.Xauthority extract - $DISPLAY | xauth merge - Never had any problems out of it. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet"