From owner-freebsd-questions Tue Jan 26 18:20:28 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA08556 for freebsd-questions-outgoing; Tue, 26 Jan 1999 18:20:28 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.enter.net (mail.enter.net [204.170.70.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08550; Tue, 26 Jan 1999 18:20:25 -0800 (PST) (envelope-from dh@enter.net) Received: from dh (m44atwn-2-7.enter.net [204.170.16.161]) by mail.enter.net (8.8.8/8.8.8) with SMTP id VAA00324; Tue, 26 Jan 1999 21:20:20 -0500 (EST) Message-ID: <003701be499b$05c1d460$0300a8c0@dh.athome.net> From: "Daniel Hauer" To: "Markus Stumpf" Cc: , , Subject: Re: X question Date: Tue, 26 Jan 1999 21:16:15 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To: Kaleb S. KEITHLEY ; 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-questions" in the body of the message