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

Re: Bastille



On Mon, 2002-08-12 at 17:09, Charles Baker wrote:
> 
> --- bob <rrscott@charter.net> wrote:
> > > I recently installed Debian.  Got everything up
> > and running and  wanted to 
> > > run Bastille but keep getting this error message:
> > > 
> > > Using Tk user interface module.
> > > Only displaying questions relevant to the current
> > configuration.
> > > Could not open config: /etc/Bastille/config,
> > defaults used.
> > > Xlib: connection to ":0.0" refused by server
> > > Xlib: Client is not authorized to connect to
> > Server
> > > couldn't connect to display ":0.0" at
> > /usr/lib/perl5/Tk/MainWindow.pm line 55.
> > > MainWindow->new() at
> > /usr/lib/perl5/site_perl//Bastille_Tk.pm line 201
> > > 
> > > I did su root and ran InteractiveBastille.  Could
> > someone point me in the 
> > > right direction?  Thanks a bunch for any help.
> > 
> > It must be run as root, not just su.  The first 3
> > lines are not to 
> > worry.  The 3rd line is because it was run before a
> > bastille config file 
> > was written.
> > Bob Scott
> > 
> > 
> 
> I forgot to include the list on my earlier reply to
> this thread. It seems that my advice was not entirely
> correct when applied to Bastille. But here it is
> anyway.
> 
> {{SNIP}}
> 
> Are you trying to run it as root from an [x|e|w|a]term
> in your xwindows session? What I usually have to do is
> ``xhost + '' as myself, ``su'' to root then ''export
> DISPLAY=:0.0'' Then run my X app as root.
> 
> {{SNIP}}

I usually just use 'su -p' instead of plain 'su'. It preserves your
environment, especially the XAUTHORITY shell variable. 

The only drawback is that root's path is not available, so you have to
add /sbin etc. manually or just use a qualified pathname when starting
applications located in /sbin, /usr/sbin and so on.

Claudio



Reply to: