on Wed, Apr 11, 2001 at 11:05:16AM +0100, Dave Whiteley ([EMAIL PROTECTED]) wrote: > On 11-Apr-2001 Karsten M. Self wrote: > > on Wed, Apr 11, 2001 at 10:49:18AM +0100, Dave Whiteley > > ([EMAIL PROTECTED]) wrote: > >> I had a similar problem a bit ago. I seem to recall that I fixed > >> it > >> by making root's ~/.Xauthority file a symbolic link to "my" > >> version > >> of the same file. > > > > Don't do that. > > > > Instead, as root: > > > > $ xauth -merge ~$user/.xauthority > > > > ...for appropriate values of $user. > > > Thanks, I thought it sounded horrid. > > I presume that this is a one off fix. You need to do it each time you > su? > > Dave
No, xauth writes the appropriate values to root's .xauthority file. Until the user changes the value authorization cookie value, you won't have to re-run xauth. You *will* have to set the DISPLAY value for root to run X apps. My preference in this instance on workstations is to set up my user account as an unrestricted sudo user so that I can run commands with root access with: $ sudo command ...in which case, for X applications, all authorization is automatically set. This doesn't work in some instances for programs which expect to run under a full root environment, though usually this just means your PATH doesn't include the appropriate sbin directories. There's probably a hack for this, I just haven't been bothered by it. -- Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/ What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpQuOtiIUIk9.pgp
Description: PGP signature