Re: Newbee-ish X and root question

2003-03-27 Thread Vineet Kumar
* Vineet Kumar <[EMAIL PROTECTED]> [20030327 01:41 PST]: > Please, please, please, don't use xhost. Really. > > Better alternatives: xauth, su -m, ssh -X And (oh yeah, duh) sudo. good times, Vineet -- http://www.doorstop.net/ -- "Computer Science is no more about computers than astronomy is

Re: Newbee-ish X and root question

2003-03-27 Thread Osamu Aoki
It is a FAQ but important one :-) On Tue, Mar 25, 2003 at 08:14:44AM -0800, Lukas Latz wrote: > I use KDM over GDM because I found it lets me log in with X as root, > which I found especially useful in the beginning when I was setting up > lots of stuff. Bad habit. > Normally I log in as a nor

Re: Newbee-ish X and root question

2003-03-27 Thread Vineet Kumar
* Paul Johnson <[EMAIL PROTECTED]> [20030327 00:21 PST]: > Try running xhost +local:localhost as the user you initially logged in > as from an xterm or similar program. Things will Just Work(tm) then. This will work as long as you're the only user on your machine. This is a bad habit to form if

Re: Newbee-ish X and root question

2003-03-27 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Mar 25, 2003 at 08:14:44AM -0800, Lukas Latz wrote: > Normally I log in as a normal user but sometimes I need to su to root > and would like to start for instance an editor, or something like > Gnome-Apt and then I get: > > Xlib: connection to

Re: Newbee-ish X and root question

2003-03-26 Thread Lukas Latz
Thanks to all who answered to this! Really overwhelming by all the useful information. Thanks, Lukas = . *** ** [EMAIL PROTECTED] ** **t. +31 (0) 10 418 2023 ** ** philips willemstra

Re: Newbee-ish X and root question

2003-03-25 Thread Shyamal Prasad
"Lukas" == Lukas Latz <[EMAIL PROTECTED]> writes: Lukas> Hi List, I use KDM over GDM because I found it lets me log Lukas> in with X as root, which I found especially useful in the Lukas> beginning when I was setting up lots of stuff. GDM will let you log in as root. Edit /etc/gdm

RE: Newbee-ish X and root question

2003-03-25 Thread deFreese, Barry
> -Original Message- > From: Vineet Kumar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 2:12 PM > To: [EMAIL PROTECTED] > Subject: Re: Newbee-ish X and root question > > > Two things. Environment variables, to be precise. The two > in question &

RE: Newbee-ish X and root question

2003-03-25 Thread nate
Lukas Latz said: > Oops, sorry for that, I never knew.. > The DISPLAY env seems to have some hidden aspects that I'll have to read > up on. When I do su (without -m) and then set DISPLAY=0:0 by hand, it > doesn't cut it. > Thanks, thats because the X server requires authentication to connect to i

Re: Newbee-ish X and root question

2003-03-25 Thread Cameron Hutchison
Once upon a time Lukas Latz said... > Barry, > > su -m surely does it. So what property that's carried over is it that > makes the difference? The difference is $HOME. If you use just 'su', your user environment is inherited by the root shell, except for some variables that get replaced by su. O

Re: Newbee-ish X and root question

2003-03-25 Thread Vineet Kumar
* Lukas Latz <[EMAIL PROTECTED]> [20030325 13:21 PST]: > Barry, > > su -m surely does it. So what property that's carried over is it that > makes the difference? Two things. Environment variables, to be precise. The two in question are DISPLAY and XAUTHORITY. The former tells X clients where t

RE: Newbee-ish X and root question

2003-03-25 Thread Lukas Latz
--- "deFreese, Barry" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Lukas Latz [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 25, 2003 11:32 AM > > To: deFreese, Barry; [EMAIL PROTECTED] > > Subject: RE: Newbee-ish X and roo

RE: Newbee-ish X and root question

2003-03-25 Thread deFreese, Barry
> -Original Message- > From: Lukas Latz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 11:32 AM > To: deFreese, Barry; [EMAIL PROTECTED] > Subject: RE: Newbee-ish X and root question > > > Barry, > > su -m surely does it. So what property

RE: Newbee-ish X and root question

2003-03-25 Thread Lukas Latz
Barry, su -m surely does it. So what property that's carried over is it that makes the difference? Thanks! Lukas --- "deFreese, Barry" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Lukas Latz [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 25, 2003 8:31 AM > > To: [EMAI

RE: Newbee-ish X and root question

2003-03-25 Thread deFreese, Barry
> -Original Message- > From: Lukas Latz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 8:31 AM > To: [EMAIL PROTECTED] > Subject: Newbee-ish X and root question > > > Hi List, > > I use KDM over GDM because I found it lets me log in with X as root, > which I found especially u