From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 23:13:30 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57B5C16A4BF for ; Fri, 5 Sep 2003 23:13:30 -0700 (PDT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id B826D43FFD for ; Fri, 5 Sep 2003 23:13:29 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) h866DTuo062663 for ; Fri, 5 Sep 2003 23:13:29 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost)h866DT2E062662 for freebsd-current@freebsd.org; Fri, 5 Sep 2003 23:13:29 -0700 (PDT) From: "Steven G. Kargl" Message-Id: <200309060613.h866DT2E062662@troutmask.apl.washington.edu> To: freebsd-current@freebsd.org Date: Fri, 5 Sep 2003 23:13:29 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: PAM, X11, and su as a normal user? (fwd) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 06:13:30 -0000 I sent this inquire to freebsd-question, but came up empty with respect to solutions to the problem. I have 2 accounts on my freebsd-current 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, troutmask:kargl[202] su sgk Password: troutmask:sgk[201] gnuplot Terminal type set to 'x11' gnuplot> plot sin(x) gnuplot> gnuplot: unable to open display 'troutmask.apl.washington.edu:0' gnuplot: X11 aborted. I've tried using "xhost sgk@", but this doesn't work. I have also used xauth to ensore that both user kargl and user sgk have the same key in .Xauthority. 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? -- Steve http://troutmask.apl.washington.edu/~kargl/