Re: su and X question

2006-04-14 Thread Andrew Sackville-West
On Fri, Apr 14, 2006 at 10:05:23AM +0200, Chris wrote: [...] > > Thanks for your suggestion. I do mostly use vi in console as root, but I'm > not a programmer, and I've never figured out how to move or copy blocks of > text in vi. I took a posters advice an installed sux which allows me to us

Re: su and X question

2006-04-14 Thread Andrei Popescu
On Fri, 14 Apr 2006 10:05:23 +0200 Chris <[EMAIL PROTECTED]> wrote: > On Thursday 13 April 2006 06:07, Paul Johnson wrote: > > On Wednesday 12 April 2006 09:49, Chris wrote: > > > Hello, > > > > > > Hi I'd like to open X-applications like the in the example below from an > > > su Terminal, but get

Re: su and X question

2006-04-14 Thread Chris
On Thursday 13 April 2006 06:07, Paul Johnson wrote: > On Wednesday 12 April 2006 09:49, Chris wrote: > > Hello, > > > > Hi I'd like to open X-applications like the in the example below from an > > su Terminal, but get an Xlib connection error. I have set up sudo so > > that: sudo kwrite /etc/fsta

Re: su and X question

2006-04-14 Thread Vincent Lefevre
On 2006-04-12 15:00:31 -0400, Luis Finotti wrote: > Zen Garden wrote: > > user$ xhost + (press enter) > [snip] > > This seems to be a security risk... Yes. > "sux" seems to be a better idea... (Or so I heard.) :-) Or define $XAUTHORITY. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web:

Re: su and X question

2006-04-13 Thread Matthew R. Dempsky
On Wed, Apr 12, 2006 at 09:06:45PM -0700, Paul Johnson wrote: > Try sudo instead, and better to use the simplest software possible when > running as root... there are plenty of console editors, I suggest one of > those as your editor while root. There's also sudoedit(1), which invokes your edito

Re: su and X question

2006-04-12 Thread Paul Johnson
On Wednesday 12 April 2006 09:49, Chris wrote: > Hello, > > Hi I'd like to open X-applications like the in the example below from an su > Terminal, but get an Xlib connection error. I have set up sudo so that: > sudo kwrite /etc/fstab works, but how come it doesn't in a normal su > Terminal? Try

Re: su and X question

2006-04-12 Thread Chris
Thanks, I'll look into sux On Wednesday 12 April 2006 19:14, Casey T. Deccio wrote: > On Wed, 2006-04-12 at 18:49 +0200, Chris wrote: > > Hello, > > > > Hi I'd like to open X-applications like the in the example below from an > > su Terminal, but get an Xlib connection error. I have set up su

Re: su and X question

2006-04-12 Thread Luis Finotti
Zen Garden wrote: > I used to have te same problem. It is because root cannot access to the > X server. > Here the sollution: > > user$ xhost + (press enter) [snip] This seems to be a security risk... "sux" seems to be a better idea... (Or so I heard.) :-) HTH, Luis -- To UNSUBSCRIBE, ema

Re: su and X question

2006-04-12 Thread Zen Garden
I used to have te same problem. It is because root cannot access to the X server.Here the sollution:user$ xhost + (press enter)And then:user$ su (without the "-") (press enter)password: (type your root password) root#Now you can launch windows from shell as root.Ciao!Matías.- On 4/12/06, Chris < [E

Re: su and X question

2006-04-12 Thread Casey T. Deccio
On Wed, 2006-04-12 at 18:49 +0200, Chris wrote: > Hello, > > Hi I'd like to open X-applications like the in the example below from an su > Terminal, but get an Xlib connection error. I have set up sudo so that: sudo > kwrite /etc/fstab works, but how come it doesn't in a normal su Terminal? >

su and X question

2006-04-12 Thread Chris
Hello, Hi I'd like to open X-applications like the in the example below from an su Terminal, but get an Xlib connection error. I have set up sudo so that: sudo kwrite /etc/fstab works, but how come it doesn't in a normal su Terminal? Thanks, Chris athlon:/home/stoffel# kwrite /etc/fstab Xlib