Are you logged into the same box? I mean you start an Xterm on the same box and then su root. It should work as shown. Try this: as the user running X type 'echo $DISPLAY'. su to root and type what the other display is set to. Also as the user running X try typing xhost +. This will allow clients to access your X server (I think).
[EMAIL PROTECTED] wrote: > > Hi! I've been looking for a way to run root stuff under X! > I tried doing what you said and su'ing to root, and then export DISPLAY=:0 > Then when I start anything X it says: > Xlib: connection to ":0.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > > I'm not sure what you mean by "whatever I run X on", but when I try other > numbers besides 0, it says: > _X11TransSocketUNIXConnect: Can't connect: errno = 2 > > Any ideas / explanation of what is going on here? > > Thanks Alot! > Timothy > > On 02-May-98 Shaleh wrote: > > Any time you log in as a user different than the one who owns the X > > session you have to set the variable DISPLAY. so next time you su to > > root simply: export DISPLAY=:0 or whatever you run your X on. > > ---------------------------------- > E-Mail: [EMAIL PROTECTED] > Date: 02-May-98 > Time: 16:13:00 > > This message was sent by XFMail. > Powered by GNU/Linux 2.0. > ---------------------------------- > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- ----------------------------------------------- How can you see, when your mind is not open? How can you think, when your eyes are closed? - Jason Bonham Band, "Ordinary Black and White" ----------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

