root X problem

Kevin Brown plug-discuss@lists.plug.phoenix.az.us
Sun, 01 Jun 2003 10:49:13 -0700


George Toft wrote:

> Carl Parrish wrote:
> 
>>A long time ago I did something so that X wouldn't have access to X.
>>(most of the time this if fine) but now I want to run xcdroast which has
>>to be run as root. So I want to allow root to access X. here is the
>>error I'm getting.
>>Xlib: connection to ":0.0" refused by server
>>Xlib: No protocol specified
>>
>>Gtk-WARNING **: cannot open display: :0
>>Anybody have any idea how to reset this? So that root can run this
>>program?
>>
>>--
>>Carl Parrish (cparrish@carlparrish.com)
>>http://www.carlparrish.com
>>---
>>Registered Linux User #295761 http://counter.li.org
>>
>>---------------------------------------------------
>>PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
>>To subscribe, unsubscribe, or to change  you mail settings:
>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
> Read the manual - it tells you the file you need to make suid root if
> you want regular users to use xcdroast.  I found it quite annoying to
> become root to burn a CD, so I performed my risk analysis - since I was
> the only user on the system, I determined the risk was acceptable, and
> chmodded the file.
> 
> George

or use sudo and add your user to the sudo permissions file in /etc.