[asterisk-users] /etc/asterisk/startup.d

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat May 23 13:27:10 CDT 2009


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.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list