Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Andy Smith
Hi Victor, On Fri, Nov 26, 2010 at 06:15:22PM +, Victor Churchill wrote: > I have been asked to make a Perl script that does some stuff with Apache's > config (adds a virtual host) and then does an apache2ctl graceful to tell > Apache to re-read its config files. I concur with Dominic's respo

Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Victor Churchill
Thanks to all. Looks like a restricted sudo will be the way to go. I will give that a try, I'm pretty confident it should do what's required. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk

Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Dominic Cleal
On 26/11/10 21:43, Dominic Cleal wrote: > It'd be difficult to write a setuid script securely as environment > variables (e.g. PATH, LD_LIBRARY_PATH) could be used to make the script > run all sorts of things the author didn't intend. Small correction: apparently LD_* type variables are ignored on

Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Dominic Cleal
On 26/11/10 21:04, Vic wrote: >> It would be daft to make www-data a sudoer and I'm not sure how I would do >> that anyway. Any ideas on how to achieve this, or alternatives? > > Factor out the couple of bits that need root privilege, and put them in > their own scripts. Make those scripts executa

Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Vic
> It would be daft to make www-data a sudoer and I'm not sure how I would do > that anyway. Any ideas on how to achieve this, or alternatives? Factor out the couple of bits that need root privilege, and put them in their own scripts. Make those scripts executable only by the www-data user, and th

Re: [Hampshire] Will there be a meeting on 4 December?

2010-11-26 Thread Dr A. J. Trickett
On Friday 26 Nov 2010, Chris Dennis wrote: > Hello folks > > The website[1] says that the meeting on 4 December in Southampton is 'to > be confirmed'. > > Can anyone either confirm or deny that it will happen? I need to find some one to let us in. I've been a bit lax/busy... -- Adam Trickett O

[Hampshire] Will there be a meeting on 4 December?

2010-11-26 Thread Chris Dennis
Hello folks The website[1] says that the meeting on 4 December in Southampton is 'to be confirmed'. Can anyone either confirm or deny that it will happen? cheers Chris [1] http://www.hantslug.org.uk/wiki/HomePage -- Chris Dennis cgden...@btinternet.com Fordi

Re: [Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Tim Brocklehurst
On Friday 26 November 2010 18:15:22 Victor Churchill wrote: > Hi > > I have been asked to make a Perl script that does some stuff with Apache's > config (adds a virtual host) and then does an apache2ctl graceful to tell > Apache to re-read its config files. > This is Ubuntu 10.04, Apache 2.2. The

[Hampshire] Running a script that needs to do a rooty thing

2010-11-26 Thread Victor Churchill
Hi I have been asked to make a Perl script that does some stuff with Apache's config (adds a virtual host) and then does an apache2ctl graceful to tell Apache to re-read its config files. This is Ubuntu 10.04, Apache 2.2. The script does its thing with the files (it runs as the www-data userID, an

Re: [Hampshire] Live streaming

2010-11-26 Thread Peter B.
VLC I found that is my favourite media player and also useful for shoutcasts etc http://www.wikihow.com/Use-Vlc-to-Stream-Audio-and-Video-to-Multiple-Computers-on-Your-Network-Using-Multicast On 25 November 2010 20:54, Tony Whitmore wrote: > On 25/11/10 20:26, Mike Burrows wrote: > >> >> Mi

[Hampshire] Ubuntu UK Christmas Party

2010-11-26 Thread Alan Bell
Hi all, The Ubuntu UK loco is organising a bit of a get together up in London on Tuesday 21st December at the Hub Islington from 7pm. It would be lovely to see you there. There will be wifi, but really the evening is more about the sherry and mince pies than laptops and geekyness and it total