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

Re: xauthority and root



On Sat, Apr 20, 2002 at 05:37:44PM -0700, Osamu Aoki wrote:
> On Sat, Apr 20, 2002 at 05:22:48PM -0500, Decibels wrote:
> > Seems that a lot of the stuff I try to do, like 'make xconfig' and 
> > starting a xfm session,... for root, when I
> > need to use root, I still have to do the
> > 
> > xauth merge  ~/username//.Xauthority
> > 
> > to get it to work. Is there anyway I can add this to a script at boot, 
> > so I don't have to enter it when I need
> > to use something as root? I am not running a server so I don't think I 
> > need to worry about security on this.
>    Ceate $HOME/.xinitrc as:
> 
>       # This makes X work when I su to root.
>       if [ -z "$XAUTHORITY" ]; then
>               XAUTHORITY=$HOME/.Xauthority
>               export XAUTHORITY
>       fi
> 
>    and run "su" in xterm.
> 
> Does this work for you?   ... from my "Debian reference" below

Doesn't work if you are using kdm/kde :-}.

-Andy


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: