Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2003 12:18:40 -0700 (PDT)
From:      "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   PAM, X11, and su as a normal user?
Message-ID:  <200309051918.h85JIe20059400@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
After a few hours of frustation, it's time to ask a question.

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,

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.
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309051918.h85JIe20059400>