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

Re: Fw: su in X



On Wed, Apr 11, 2001 at 11:05:16AM +0100, Dave Whiteley wrote:
> I presume that this is a one off fix. You need to do it each time you
> su?
> 
> On 11-Apr-2001 Karsten M. Self wrote:
> > Instead, as root:
> > 
> >     $ xauth -merge ~$user/.xauthority
> > 
> > ...for appropriate values of $user.

Someone recently suggested to put 

if [ ! "$USER" = "root" ]; then
    export XAUTHORITY=/home/$USER/.Xauthority
fi

in root's .bashrc, which gives you this permission whenever you su
(but not "su -", which resets USER).

Rob

-- 
There's no point in being grown up if you can't be childish sometimes.
		-- Dr. Who



Reply to: