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

[leafnode-list] Re: Filling the gap.



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
2.)  create user news
3.)  create a script, /usr/bin/getchnews, for example
4.)  run the command!

yes?


-Thufir

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/