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

Re: Root in X Display



On Mon, May 21, 2001 at 03:43:04PM -0600, Chris Spencer wrote:
> How can I change my permissions so that root can run things on the X Display 
> of my normal user? For example, if I drop to a command prompt, su to root, 
> and try to configure the kernel by typing in "make xconfig" I get the error:
> 
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> 
> How can I change this? Thanks...

To steal one of Karsten's answers from a couple weeks back:

> Rather than exporting xauthority, my preference is:
> 
>     # As root
>     $ xauth merge ~$USER/.Xauthority
> 
> ...where $USER is your desired user.
> 
> This transfers cookies from $USER's .Xauthority file to root's
> .Xauthority file.  Changes to user's .Xauthority file don't effect X.
> X now has access to user's X session, but not vice versa.

(Hey, Will...  Is this one in your 'newbie tip-of-the-.sig' list yet?)

-- 
That's not gibberish...  It's Linux. - Byers, The Lone Gunmen
Geek Code 3.1:  GCS d? s+: a- C++ UL++$ P++>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r y+



Reply to: