As a normal user "xhost + (name of your host) THEN su and export DISPLAY=:0
On Sat, 2 May 1998 [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] > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <[EMAIL PROTECTED]> Roberto Magana. Escuela de Fisica UCR. (The Physics Dept. University of Costa Rica.) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]