Re: [e-smith-devinfo] Restarting squid from an I-Bay

2001-07-31 Thread jlewis

You could install and configure sudo to allow www user to execute init.d 
scripts as root...

I haven't done it before, but i've used sudo, and it works quite well.  Has 
anyone tried it on an e-smith box?

-JL

Quoting Trevor Ouellette [EMAIL PROTECTED]:

 I know that I've asked all of you this before... but someone here must
 be
 smart enough to figure this out with me... GRIN
 
 If anyone knows how to restart squid from an Ibay, please let me
 know...
 what permissions to set, etc.  I have no problem executing a script
 that
 runs /etc/rc.d/init.d/squid restart, but squid realizes what I'm doing
 and
 promply stops.  I'm running as user www because it's a I-Bay.
 
 Can I run an I-Bay from port :980?  It's a PHP script BTW, not perl. 
 I'm
 putting this challenge out to all of you!  I will do my best to answer
 any
 questions that you may have re: this problem.
 
 Trev.
 
 
 
 
 --
 Please report bugs to [EMAIL PROTECTED]
 Please mail [EMAIL PROTECTED] (only) to discuss security issues
 Support for registered customers and partners to [EMAIL PROTECTED]
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Archives by mail and
 http://www.mail-archive.com/devinfo%40lists.e-smith.org
 
 

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org




Re: [e-smith-devinfo] Restarting squid from an I-Bay

2001-07-31 Thread Chris Hardy

Well, Not knowing alot of how the perl esmith module works, this is
chancy, but you could do the following:

make a /etc/e-smith/events/actions/conf-squidguard  with the following.



#!/usr/bin/perl

package esmith;

use strict;
use Errno;
use esmith::util;

esmith::util::backgroundCommand (0, /etc/rc.d/init.d/squid restart);

exit(0);


then in /etc/e-smith/events/manager-misc link it to the actions
directory.. ie

ln -s ../actions/conf-squidguard S98conf-squidguard 


When the e-smith manager is modified, the squid guard info will be
reloaded...  

At least, that's how I understand it would work ;)

Let me know how this goes, I'm pretty intrested in this project!

Trevor Ouellette wrote:
 
 I know that I've asked all of you this before... but someone here must be
 smart enough to figure this out with me... GRIN
 
 If anyone knows how to restart squid from an Ibay, please let me know...
 what permissions to set, etc.  I have no problem executing a script that
 runs /etc/rc.d/init.d/squid restart, but squid realizes what I'm doing and
 promply stops.  I'm running as user www because it's a I-Bay.
 
 Can I run an I-Bay from port :980?  It's a PHP script BTW, not perl.  I'm
 putting this challenge out to all of you!  I will do my best to answer any
 questions that you may have re: this problem.
 
 Trev.
 
 --
 Please report bugs to [EMAIL PROTECTED]
 Please mail [EMAIL PROTECTED] (only) to discuss security issues
 Support for registered customers and partners to [EMAIL PROTECTED]
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

-- 
We are all slaves to our histories. If there is to be a ..
 bright future, we must learn to break those chains.
-- Delenn to Garibaldi in Babylon 5:GROPOS

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org




RE: [e-smith-devinfo] Restarting squid from an I-Bay

2001-07-31 Thread Trevor Ouellette

At least, that's how I understand it would work ;)
Let me know how this goes, I'm pretty intrested in this project!

Thanks Chris.  I'm not much of a programmer... but this squidguard thing is
starting to really take shape!

Trev.


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org




RE: [e-smith-devinfo] Restarting squid from an I-Bay

2001-07-31 Thread Trevor Ouellette

Thanks everyone for your help with my problem.  I got it.  The sudo
recommendation from J. Lewis did the trick.  I'm just tightening up security
now.

I have been writing an installation script to install the entire squidguard,
lists, updates, IP security stuff, etc.

I guess the next step would be to rpm it.

Trev.


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org