Re: how does root run a graphical prog

2002-05-22 Thread Karsten M. Self
on Tue, May 21, 2002, Rogerio Acquadro ([EMAIL PROTECTED]) wrote: > > hi, > > > > How come root can not run a graphical program under other user > > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > > produce this message: > > > > Xlib: connection to ":0.0" refused by server >

Re: how does root run a graphical prog

2002-05-22 Thread Karsten M. Self
on Mon, May 20, 2002, Vineet Kumar ([EMAIL PROTECTED]) wrote: > * Dave Sherohman ([EMAIL PROTECTED]) [020520 10:49]: > > On Mon, May 20, 2002 at 06:39:22PM +0200, Kristian Rink wrote: > > > Something like 'xhost +' basically should > > > allow anyone (on your system) to connect to X hence to displa

Re: how does root run a graphical prog

2002-05-21 Thread Dave Sherohman
On Mon, May 20, 2002 at 11:29:14AM -0700, Vineet Kumar wrote: > * Dave Sherohman ([EMAIL PROTECTED]) [020520 10:49]: > > If you MUST use xhost, use 'xhost + localhost'. But using xauth or > > XAUTHORITY is the Right Way To Do It. > > Thanks Dave! You just pointed out one of the many, many, MANY r

Re: how does root run a graphical prog

2002-05-21 Thread Carel Fellinger
On Tue, May 21, 2002 at 12:37:34PM -0400, Travis Crump wrote: > Carel Fellinger wrote: ... > >I think you did `su', not `su -'. > > > >A mere `su' merely changes your identity, but the environment stays the > >same. In particular $HOME. So when you launce an X-appl, the authorisation > >cookie is

Re: how does root run a graphical prog

2002-05-21 Thread Travis Crump
Jamin W.Collins wrote: Try opening a terminal as a normal user and running the following: echo $XAUTHORITY now 'su' to root and run the same commands again. And, finally 'su -' to root and run the commands one more time. I think you find the answer to your questions. (hint: take a close look

Re: how does root run a graphical prog

2002-05-21 Thread Jamin W . Collins
On Tue, 21 May 2002 12:37:34 -0400 "Travis Crump" <[EMAIL PROTECTED]> wrote: > I just did a plain 'su' followed by a 'echo $HOME' and got /root. Then > I tried to open a graphical program as root which I always thought just > worked and got an: (snip) > But the program still started and ran fin

Re: how does root run a graphical prog

2002-05-21 Thread Travis Crump
Carel Fellinger wrote: On my Debian system root can automatically run X-Apps (after an su). I was wondering why but haven't figurerd it out yet. It's not what I was used to before. I think you did `su', not `su -'. A mere `su' merely changes your identity, but the environment stays the same.

Re: how does root run a graphical prog

2002-05-21 Thread Rogerio Acquadro
> hi, > > How come root can not run a graphical program under other user > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > produce this message: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server > > Everything fine if I r

Re: how does root run a graphical prog

2002-05-21 Thread Carel Fellinger
On Mon, May 20, 2002 at 08:10:10PM +0100, Frank Zimmermann wrote: > On Mon, May 20, 2002 at 11:29:14AM -0700, Vineet Kumar wrote: ... > > Use su and read the originating user's ~/.Xauthority, or use ssh's X > > forwarding. > > > > On my Debian system root can automatically run X-Apps (after an su

Re: how does root run a graphical prog

2002-05-20 Thread Willy S
* Peter Hicks ([EMAIL PROTECTED]) wrote: > Just put this in your .bashrc file > > XAUTHORITY=$HOME/.Xauthority > > export XAUTHORITY Thanks for the help. It has solved my problem. Actually I expect to have a nice and clean solution like yours, but turns out there are so many solutions for my prob

Re: how does root run a graphical prog

2002-05-20 Thread Corrin Lakeland
On Tue, 21 May 2002 08:24, Nicos Gollan wrote: > On Monday 20 May 2002 19:37, Dave Sherohman wrote: > > On Mon, May 20, 2002 at 06:49:19PM +0200, Nicos Gollan wrote: > > > You could try using ssh with X forwarding for that. Just "ssh > > > [EMAIL PROTECTED]" should do the trick. It's not the best w

Re: how does root run a graphical prog

2002-05-20 Thread Nicos Gollan
On Monday 20 May 2002 19:37, Dave Sherohman wrote: > On Mon, May 20, 2002 at 06:49:19PM +0200, Nicos Gollan wrote: > > You could try using ssh with X forwarding for that. Just "ssh > > [EMAIL PROTECTED]" should do the trick. It's not the best way, but it works. > > ...unless you're on a system whic

Re: how does root run a graphical prog

2002-05-20 Thread Kristian Rink
On Mon, May 20, 2002 at 12:36:06PM -0500, Dave Sherohman wrote: > On Mon, May 20, 2002 at 06:39:22PM +0200, Kristian Rink wrote: > > If you MUST use xhost, use 'xhost + localhost'. But using xauth or > XAUTHORITY is the Right Way To Do It. > Hm... by now I indeed pretty much was using xhost

Re: how does root run a graphical prog

2002-05-20 Thread Robin Putters
On Mon, 2002-05-20 at 18:45, Willy S wrote: > hi, > > How come root can not run a graphical program under other user > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > produce this message: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to c

Re: how does root run a graphical prog

2002-05-20 Thread Frank Zimmermann
On Mon, May 20, 2002 at 11:29:14AM -0700, Vineet Kumar wrote: > * Dave Sherohman ([EMAIL PROTECTED]) [020520 10:49]: > > On Mon, May 20, 2002 at 06:39:22PM +0200, Kristian Rink wrote: > > > > Thankfully, debian's X config has by default an option (and I won't tell > you which if you don't know, b

Re: how does root run a graphical prog

2002-05-20 Thread Vineet Kumar
* Dave Sherohman ([EMAIL PROTECTED]) [020520 10:49]: > On Mon, May 20, 2002 at 06:39:22PM +0200, Kristian Rink wrote: > > Something like 'xhost +' basically should > > allow anyone (on your system) to connect to X hence to display any > > graphical output. > > Bzzt! 'xhost +' allows anyone (on an

Re: how does root run a graphical prog

2002-05-20 Thread Colin Watson
On Mon, May 20, 2002 at 12:37:28PM -0500, Dave Sherohman wrote: > On Mon, May 20, 2002 at 06:49:19PM +0200, Nicos Gollan wrote: > > You could try using ssh with X forwarding for that. Just "ssh > > [EMAIL PROTECTED]" should do the trick. It's not the best way, but it > > works. > > ...unless you'r

Re: how does root run a graphical prog

2002-05-20 Thread Dave Sherohman
On Mon, May 20, 2002 at 06:49:19PM +0200, Nicos Gollan wrote: > You could try using ssh with X forwarding for that. Just "ssh [EMAIL > PROTECTED]" > should do the trick. It's not the best way, but it works. ...unless you're on a system which is configured to disallow remote root logins via ssh.

Re: how does root run a graphical prog

2002-05-20 Thread Dave Sherohman
On Mon, May 20, 2002 at 06:39:22PM +0200, Kristian Rink wrote: > Something like 'xhost +' basically should > allow anyone (on your system) to connect to X hence to display any > graphical output. Bzzt! 'xhost +' allows anyone (on any system capable of contacting your system) to connect to X and d

Re: how does root run a graphical prog

2002-05-20 Thread Peter Hicks
On Mon, May 20, 2002 at 11:45:31PM +0700, Willy S wrote: >hi, > >How come root can not run a graphical program under other user >session. Let say, I do 'su' and I try to launch gkrellm. Xterm will >produce this message: > >Xlib: connection to ":0.0" refused by server >Xlib: Client is not authorized

Re: how does root run a graphical prog

2002-05-20 Thread Colin Watson
On Mon, May 20, 2002 at 11:45:31PM +0700, Willy S wrote: > How come root can not run a graphical program under other user > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > produce this message: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized

Re: how does root run a graphical prog

2002-05-20 Thread Brian P. Flaherty
Willy S <[EMAIL PROTECTED]> writes: > hi, > > How come root can not run a graphical program under other user > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > produce this message: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect

Re: how does root run a graphical prog

2002-05-20 Thread Carl Fink
I recommend xhost local:+ over the more general xhost + -- Carl Fink [EMAIL PROTECTED] Manager, Dueling Modems Computer Forum -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: how does root run a graphical prog

2002-05-20 Thread Nicos Gollan
On Monday 20 May 2002 18:45, Willy S wrote: > How come root can not run a graphical program under other user > session. Let say, I do 'su' and I try to launch gkrellm. Xterm will > produce this message: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to

Re: how does root run a graphical prog

2002-05-20 Thread Kristian Rink
On Mon, May 20, 2002 at 11:45:31PM +0700, Willy S wrote: > > Xlib: connection to ":0.0" refused by server > Xlib: Client is not authorized to connect to Server X requires you to have permissions to access the running X server to display any output on your screen. Usually (on well-configured syste