On Wed, 24 Mar 1999, Simon Hill wrote:

> On Tue, 23 Mar 1999, Michael Rice wrote:
> >
> >second, there is another authentication mechanism based on 'MIT magic
> >cookies' where you can see them in action if you do a 'xauth list'.
> >
> >Just do something like this before becoming the other user:
> >
> >xauth extract - `hostname`:0 | su <newuser> -c 'xauth merge -'
> 
> I am also trying to get this set up.  When I use the above command, su gives me
> a password prompt, then does not allow me to enter the password, reponding
> immediately with 'su: incorrect password'

ahh... the way around this is to avoid the pipe:

xauth extract /tmp/myauth `hostname`:0
su <newuser> -c 'xauth merge /tmp/myauth'

_____________________   _                    _   _________________________
         Michael Rice  |_|    Collective    |_|  http://www.colltech.com
   [EMAIL PROTECTED]    |_  Technologies  _|    8007598888/8019292 pager 
           Consultant      []            []      "The Power Of Many Minds"   

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to