On Sat, May 23, 2009 at 10:20:21AM -0700, Steve Edwards wrote: > On Sat, 23 May 2009, Philipp Kempgen wrote: > > > Tzafrir Cohen schrieb: > > > >> As which user? > > > > Good question. Obviously either as root because /etc/init.d/asterisk is > > run by root or as Asterisk's runuser which is likely to be one of root > > or asterisk. root would buy us more flexibility :-) > > And insecurity. > > I'd vote for the user Asterisk will be running as. You can always use sudo > in the script if needed.
Depends what the script needs to do. It's the sysadmin that adds those scripts. If the script needs to check something with mysql, as in the example given by the OP, running it as asterisk is pointless. If the sysadmin wants to run something as asterisk, there's always su -c -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users