On Mon, Jul 02, 2001 at 06:30:12PM +0200, tim wrote: > On Monday, 2. July 2001 17:00, you wrote: > > If you are the only user that will ever su to run an x app, you can > > do another pretty lame trick by putting both variable assignments in > > /root/.bash_profile. It is pretty bad actually, because when you > > login on the console, some programs will be confused and think you're > > in x. > > I had the same idee, but doubt that it would work.
Why not? You are never directly referring to any credentials, just a file that should contain currently valid credentials. And root can read any file, so the mode 0600 on ~tim/.Xauthority doesn't matter. If it is always user tim, logged in on the :0 display, who su's to root, then it should work, I figure. Although I must admit not having actually tested it. As I said, I think it's pretty lame. Do something else. Cheers, Joost