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

Re: Root privilege (SOLVED)



On Wed, Jan 10, 2007 at 11:01:06AM EST, Rob Sims wrote:
> On Tue, Jan 09, 2007 at 02:12:33PM -0800, Paul Johnson wrote:
> > > Now, please explain how I can use sudo to tranfer X credentials ..
> > 
> > It does this automatically.
> > 
> > sudo <xproggie>
>  
> It does not:
> $ sudo xlogo
> Password:
> X11 connection rejected because of wrong authentication.

Same here .. plus some message letting me know they're going to report
me to the sudo police.

So it looks like you need to set yourself up in the sudoers file first.

> It might work if the X app can find and read the .Xauthority file as
> root (you've set up sudo to retain $HOME, and $HOME is local), but if
> root can't find .Xauthority (due to environment variable sanitization
> done by updated sudo) or if root can't read the .Xauthority file ($HOME
> over NFS), X programs fail.
> -- 
> Rob




Reply to: