Re: Gtk error only when root! (??)

2002-01-22 Thread darrell



[EMAIL PROTECTED] wrote:


On Tue, Jan 22, 2002 at 05:40:10PM -0600, Richard Cobbe wrote (0.30):


Except that when you do `su -', as the OP noted, not all of your
environment settings propagate into the root shell.  Instead, after you
su, do the following:
   xauth merge ~user/.Xauthority
where `user' is the name of the user from which you su'd.  (If, for



The reason I prefer the $XAUTHORITY method (which does work with sudo
and su, just not `su -'), is that once you've set it in your environment
settings, it Just Works (tm) with no further mucking around on the users
part.

If you use sudo a lot, you can use it to provide graphical root-type
tools to non root users (stuff like ppp controls, or print queue
kickers) somewhat safely.

M


my solution to this problem is a bit more resouse intensive, but,... 
here it is:


run 2 X servers!

alt-ctrl-f1# drop to shell
login as root
X :2 &   # run X server on a different display - this will be 
alt-ctrl-f8 on my system

alt-ctrl-f1
hit enter
wmaker --display :2  &# run a window manager in the background on 
2nd X server

alt-ctrl-f7
alt-ctrl-f8  # have one desktop for burning cd's or whatever, and the 
other for surfing or whatever


seems like a lot of work, but i dont reboot too often ;)

darrell





Re: Gtk error only when root! (??)

2002-01-22 Thread Mark Ferlatte
On Tue, Jan 22, 2002 at 05:40:10PM -0600, Richard Cobbe wrote (0.30):
> Except that when you do `su -', as the OP noted, not all of your
> environment settings propagate into the root shell.  Instead, after you
> su, do the following:
> xauth merge ~user/.Xauthority
> where `user' is the name of the user from which you su'd.  (If, for

The reason I prefer the $XAUTHORITY method (which does work with sudo
and su, just not `su -'), is that once you've set it in your environment
settings, it Just Works (tm) with no further mucking around on the users
part.

If you use sudo a lot, you can use it to provide graphical root-type
tools to non root users (stuff like ppp controls, or print queue
kickers) somewhat safely.

M



Re: Gtk error only when root! (??)

2002-01-22 Thread Richard Cobbe
Lo, on Tuesday, January 22, Mark Ferlatte did write:

> On Tue, Jan 22, 2002 at 01:23:16PM -0800, Camilux wrote (1.00):
> > if i am not root, i can for example open gdmconfig, but it says i 
> > need to be root to change things; so i su - myself up to root, but 
> > when i type gdmconfig, i get this error:
> > 
> > Gtk Error: Can't Open display
> 
> 
> 
> > whats wrong here?
> 
> X uses security mechanisms to prevent other users on the same machine
> from using your display.  The easiest way to fix this is to put the
> following in your .bashrc (if you use bash):
> 
> export XAUTHORITY=$HOME/.Xauthority
> 
> then log out, log back in.
> 
> This will let you run X apps via su or sudo.

Except that when you do `su -', as the OP noted, not all of your
environment settings propagate into the root shell.  Instead, after you
su, do the following:
xauth merge ~user/.Xauthority
where `user' is the name of the user from which you su'd.  (If, for
whatever reason, user's X authority file is in a different location, as
with an ssh connection, substitute the correct filename in its place.)

Richard



Re: Gtk error only when root! (??)

2002-01-22 Thread Mark Ferlatte
On Tue, Jan 22, 2002 at 01:23:16PM -0800, Camilux wrote (1.00):
> if i am not root, i can for example open gdmconfig, but it says i 
> need to be root to change things; so i su - myself up to root, but 
> when i type gdmconfig, i get this error:
> 
> Gtk Error: Can't Open display



> whats wrong here?

X uses security mechanisms to prevent other users on the same machine
from using your display.  The easiest way to fix this is to put the
following in your .bashrc (if you use bash):

export XAUTHORITY=$HOME/.Xauthority

then log out, log back in.

This will let you run X apps via su or sudo.

M


pgps2C8WTlB2o.pgp
Description: PGP signature


Re: Gtk error only when root! (??)

2002-01-22 Thread Charles Baker
man xhosts

--- Camilux <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> im having this *very* strange error in deb 2.2 ,
> ximian gnome...
> 
> if i am not root, i can for example open gdmconfig,
> but it says i 
> need to be root to change things; so i su - myself
> up to root, but 
> when i type gdmconfig, i get this error:
> 
> Gtk Error: Can't Open display
> 
> same when triying to install the mozilla binary...
> if not root, the 
> graphical installation screen pops up, but of course
> i cant install 
> sh*t... so i su to root, and same Gtk error... 
> 
> whats wrong here?
> 
> thanks...
> camilo
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 


=
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



Gtk error only when root! (??)

2002-01-22 Thread Camilux
Hi,

im having this *very* strange error in deb 2.2 , ximian gnome...

if i am not root, i can for example open gdmconfig, but it says i 
need to be root to change things; so i su - myself up to root, but 
when i type gdmconfig, i get this error:

Gtk Error: Can't Open display

same when triying to install the mozilla binary... if not root, the 
graphical installation screen pops up, but of course i cant install 
sh*t... so i su to root, and same Gtk error... 

whats wrong here?

thanks...
camilo