[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More Admin Questions



> 
> I installed the smail package and related files. How can I be sure
> this is being used and not sendmail? Also when I su to root from a
> user account and try to run an X program I get the following message:
> 
> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
> 
> Initialization error: X server not responding
> : ":0.0"
> 
> 

You need to xauth as root. 

Before you do su

Issue the command 

xauth list

This will return a list of authorizations keys 

It will look like this 

xxxx.test.org:0  MIT-MAGIC-COOKIE-1  1a312419999999988bbd456213456112
xxxx/unix:0  MIT-MAGIC-COOKIE-1    1a312419999999988bbd456213456112

find the one for you machine that is not trailing by unix:0.0

Do the su

As root issue

Make sure your display variable is correct, then issue


xauth add xxxx.test.org:0  MIT-MAGIC-COOKIE-1  1a312419999999988bbd456213456112

where the argument came from the previous xauth list.

A correctly configured ssh can eliminate the need for this. I have seen it 
work but I currently have having trouble with my ssh configuration, so I have 
been using this workaround.

______________________________________________________________________________

Michael Procario                                       EMAIL: procario@cmu.edu
Department of Physics                                  PHONE: 412/268-3887
Carnegie Mellon University      

              "Another casualty of applied metaphysics"
______________________________________________________________________________






Reply to: