Newer
Older
rootx / rootx
@toor toor on 27 Dec 2012 431 bytes Fixed typo.
#!/bin/sh
# rootx - Configure X For root User After An su or sudo Promotion
# Copyright (c) 2012 TundraWare Inc., Des Plaines, IL USA
# All Rights Reserved
# $Id: rootx,v 1.104 2012/12/27 23:15:08 toor Exp $

# Allow the DISPLAY variable to be overriden on the command line

if [ _$1 = _ ]
then
  DISPLAY=localhost:10.0

else
  DISPLAY=$1

fi

echo "Make sure you sourced me!"
cp -p /home/tundra/.Xauthority /root/
export DISPLAY