Eric, Steve,
        There is an option in /etc/X11/xdm-config (if you are running xdm, kdm,
gdm) that will turn off X authorization.  It is
DisplayManager._0.authorize:    true
change this to false and anyone can connect.  It's a bad idea though.
Doing the xhost + localhost is pretty safe but there are better
solutions.  Next option - as you (local user) enter :
xauth list
This gives you a list of cookies that you can add as root to allow you
to use X.  You just cut and paste the :0  and /unix cookies and do an
xauth add as root.  Cleaner, yes, but it's a major pain.  I'm assuming
that you are doing an su  or su - to log in as root.  The best thing you
can do is, instead of using su, to do ssh -l root localhost.  This will
run the root user in a secure shell and will pass all X traffic
encrypted.  It will use a proxy display server so there is no
authorization problem.  You'll notice that your DISPLAY variable as root
is set to localhost:10.0 or something like that.
I will sometimes run as root (under fvwm2 to minimize latency problems)
but I've been doing UNIX system admin for 15 years so I feel fairly
comfortable with it.  The only real danger running as root is that
you'll do something stupid (what we like to call an SOD).
Jan
On Fri, 2002-12-27 at 04:31, Steve Harris wrote:
  On Thu, Dec 26, 2002 at 10:41:32 -0500, Eric Dantan
Rzewnicki wrote:
  Anyway. I end up with an executable ams. When I
run ./ams I get this:
 ./ams: error while loading shared libraries: libjack.so.0: cannot open
 shared object file: No such file or directory
 I have that in /usr/local/lib/libjack.so.0 so creating this link appears
 to help:
 box1:/usr/lib# ln -s /usr/local/lib/libjack.so.0 libjack.so.0
 Is that the correct sollution? 
 No, delete that link then try running ldconfig as root, if that doesn't
 work, check your /etc/ld.so.conf includes /usr/local/lib.
  box1:/home/eric/audio_code/ams-1.5.5# ./ams
 ams: cannot connect to X server
 I assume this is because X is running as me (eric) and not as root. I'll
 try getting out of X and starting it as root as soon as I finish writing
 this message. But, is there a way to let root connect to the X server
 that's running as eric? 
 Run "xhost + localhost" as you to allow root to connect, there is a cleaner
 way involving cookies, but I cant remeber it. I'm supprised your
 distribution doesn't set that up automatically.
  Do those of you running jackd as root also run
your X session as root? 
 No.
 - Steve