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

Re: xauthority and root



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
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
 Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D
.
 See "User's Guide":     http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/reference/
.
 "Debian reference" Project at: http://qref.sf.net
.
 I welcome your constructive criticisms and corrections.


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



Reply to: