Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 1999 21:16:15 -0500
From:      "Daniel Hauer" <dh@enter.net>
To:        "Markus Stumpf" <maex-freebsd-hackers@Space.Net>
Cc:        <hackers@FreeBSD.ORG>, <kaleb@ics.com>, <questions@FreeBSD.ORG>
Subject:   Re: X question
Message-ID:  <003701be499b$05c1d460$0300a8c0@dh.athome.net>

next in thread | raw e-mail | index | archive | help
Hi There,
  Just to let you know, I found a simpler way to do it.... you may want to
keep it in mind for others:
Just put this in your root shell file (mine is bash)

XAUTHORITY=/(your home dir path)/.Xauthority
export XAUTHORITY

Since you recreate XAUTHORITY each time you login through xdm as a user,
when you su from an xterm, xdm reads the variable XAUTHORITY which points to
your valid one....
neat....

Regards,
Daniel Hauer.
http://www.enter.net  "The Road To The Internet Starts There!"
***************************************************************************
Windoze is for GAMES, UNIX is for the rest of us.
UNIX is like the sights on a loaded gun. If you aim the gun
at your foot and pull the trigger, it is the basic function of
UNIX to accurately deliver the bullet from the gun to the
target. In this case, it's your foot.
***************************************************************************
-----Original Message-----
From: Markus Stumpf <maex-freebsd-hackers@Space.Net>
To: Kaleb S. KEITHLEY <kaleb@ics.com>; dh@enter.net <dh@enter.net>
Date: Tuesday, January 12, 1999 1:09 AM
Subject: Re: X question


>On Sun, Jan 10, 1999 at 08:44:26PM -0500, Kaleb S. KEITHLEY wrote:
>> Rather off-topic for FreeBSD-hackers---
>
>I've removed hackers from the Cc:
>
>> The way around this is:
>> [ .. ]
>> Now root will be able to run X programs in your session.
>>
>> Once you log out and log back in you'll get new credentials and you'll
>> need to repeat the above steps again.
>
>How about
>
># export XAUTHORITY=~user/.Xauthority
>
>Should do the same trick and save you from fiddling with the credentials.
>
>And as the latter user is root there should be no problem in reading
>the ~user/.Xauthority file (unless you live on a NFS partition and
>root is mapped to some unpriviledged user in /etc/exports).
>
> \Maex
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003701be499b$05c1d460$0300a8c0>