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

Re: sendmail 8.9



On Sun, Mar 05, 2000 at 09:31:46PM -0500, James Daniels wrote:
> 
> <Much of the previous punted>
> 
> Granted su - will work, but try to run a program that requrie a gui, and
> you will get "cannot open display", so this is why I suggested su and
> not su -.
> 
> Jim

The rigorous (but not always easy or expedient) solution is:

 xhost localhost
 su -
 <enter password>
 export DISPLAY=:0.0

I made a script that does the first two, called "beroot", which also
sets the xterm window title to "root" using:

 echo -n "]0;root"

Then, in root's .bashrc, I have:

 if [ "$TERM" = "xterm" ]
 then export DISPLAY=:0.0
 fi

Cheers,
-- 
Bob McClure, Jr.            |
Bobcat Open Systems, Inc.   | Trust me.  I'm an engineer.
robertmcclure earthlink net |



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