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

Re: Root privilege (SOLVED)



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.

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

Attachment: signature.asc
Description: Digital signature


Reply to: