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

Re: how can other users use X?



Moin!

* Alexandros Papadopoulos <apapadop@alumni.carnegiemellon.edu> [040727 21:48]:

> > root@Marius:~# xhost +root
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
> >
> > xhost:  unable to open display ":0"
> > root@Marius:~#
> >
> > Suggestions?
> 
> As the user who started the X session (NOT root!), issue the command:
> $ xhost +local:
> 
> Then you *might* possibly, if the application/shell doesn't know about 
> it, tell root what your X display is, with (for bash)
> # export DISPLAY=":0.0"
> (assuming a local X server)

Debian shipes it's X with tcp listening disabled for security reasons.
If you want to run applications as an other user you can either find the
"nolisten tcp" option somewhere under /etc/X11, and use your set DISPLAY
/ xhost method, or you can use »sux« (su with x) of the package sux (not
sure, if it is in stable) instead, or you can cheat and use ssh -x
user@localhost (you might need to allow your ssh server X11 forwarding).


Yours sincerely,
  Alexander

Attachment: signature.asc
Description: Digital signature


Reply to: