[leafnode-list] Re: Filling the gap.

Werner Geuens werner at geuens.org
Mon Sep 11 23:26:48 CEST 2006


On Saturday 09 September 2006 22:12, Thufir wrote:
> On Sat, 09 Sep 2006 20:31:22 +0200, Werner Geuens wrote:
> [...]
>
> >> Could I get a concrete example of how this is done, please?
> >
> > From my script thath downloads only non-binarry groups:
> >
> > "sudo -u news env 'LN_SKIP_GROUPS=alt.binar*,alt.binair*'
> > /usr/sbin/fetchnews -vv"
> >
> > This requires the my user my run /usr/bin/getchnews assuming the identity
> > of user 'news'.
> >
> > From the config /etc/sudoers:
> >
> > # Runas alias specification
> > werner	ALL=(news) NOPASSWD: /usr/sbin/fetchnews
> > werner	ALL=(news) NOPASSWD: /usr/sbin/texpire
> > werner	ALL=(news) NOPASSWD: /usr/bin/env
> >
> >
> > Enjoy !
>
> [...]
>
> Thanks :)
>
> I need to:
>
>
> 1.)  set up sudo
By editing /etc/sudoers, yes.

> 2.)  create user news
No, that user allready exists.

> 3.)  create a script, /usr/bin/getchnews, for example
Mine is called "no_bnaries_fetch.sh".

> 4.)  run the command!
Manually, or with cron. You can add switches to run quiet, (remove -vvv).
If you leave the verbose (-vv) in, and run it from cron, you'll get the output 
via email.


-- 
Werner Geuens
mailto:werner at geuens.org
"Never underestimate the bandwidth of a station wagon full of tapes
hurtling down the highway."



More information about the leafnode-list mailing list