Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Sep 2003 20:06:03 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PAM, X11, and su as a normal user?
Message-ID:  <20030907010603.GB96960@over-yonder.net>
In-Reply-To: <200309061511.h86FBLep065335@troutmask.apl.washington.edu>
References:  <20030906120317.GA78469@happy-idiot-talk.infracaninophile.co.uk> <200309061511.h86FBLep065335@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



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