From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 13:07:59 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 D946616A4BF for ; Fri, 5 Sep 2003 13:07:59 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2699043F3F for ; Fri, 5 Sep 2003 13:07:58 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h85K7bQr066617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Sep 2003 21:07:54 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h85K7bPv066616; Fri, 5 Sep 2003 21:07:37 +0100 (BST) (envelope-from matthew) Date: Fri, 5 Sep 2003 21:07:37 +0100 From: Matthew Seaman To: "Steven G. Kargl" Message-ID: <20030905200737.GB45683@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Steven G. Kargl" , freebsd-questions@freebsd.org References: <200309051918.h85JIe20059400@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QTprm0S8XgL7H0Dt" Content-Disposition: inline In-Reply-To: <200309051918.h85JIe20059400@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.4 required=5.0 tests=AWL,BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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: Fri, 05 Sep 2003 20:08:00 -0000 --QTprm0S8XgL7H0Dt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 05, 2003 at 12:18:40PM -0700, Steven G. Kargl wrote: > After a few hours of frustation, it's time to ask a question. >=20 > I have 2 accounts on my machine. I use startx to start > X11 as user kargl. If I then su to user sgk, I cannot > fire up X clients. For example, >=20 > troutmask:kargl[202] su sgk > Password: > troutmask:sgk[201] gnuplot > Terminal type set to 'x11' > gnuplot> plot sin(x) > gnuplot>=20 > gnuplot: unable to open display 'troutmask.apl.washington.edu:0' > gnuplot: X11 aborted. >=20 > I've tried using "xhost sgk@", but this doesn't work. > The only thing I can think of that may need to be > configured is PAM, but the documentation is rather > incomplete. So, anyone know how to setup su to > permit sgk to use X clients? As user kargl: % xauth nextract /tmp/foo ${DISPLAY} As user sgk: % xauth nmerge /tmp/foo and remember to delete /tmp/foo as soon as possible. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --QTprm0S8XgL7H0Dt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD4DBQE/WO0JdtESqEQa7a0RArQLAJ9E5VPS0FA7zYlKVpkgSs7i5+3kxQCYj83j PfsodI/caOcjwAqLHXgmXA== =kd9R -----END PGP SIGNATURE----- --QTprm0S8XgL7H0Dt--