[asterisk-users] Re: Can't find asterisk.ctl under CentOS installation

Axel Thimm Axel.Thimm at ATrpms.net
Tue Jan 23 10:27:35 MST 2007


On Tue, Jan 23, 2007 at 06:20:08PM +0100, Axel Thimm wrote:
> On Tue, Jan 23, 2007 at 03:54:49PM +0200, Tzafrir Cohen wrote:
> > On Tue, Jan 23, 2007 at 02:48:07PM +0100, Axel Thimm wrote:
> > 
> > > 
> > > If I call asterisk -r as root it succeeds, if as another user it will
> > > give Devraj's error message. That's probably how it is supposed to
> > > work, or not?
> > 
> > Just a thought: shouldn't the asterisk user be allowed write access to
> > that control socket? Or maybe the asterisk group?
> 
> The asterisk user is allowed, too, of course, the group not (yet).
> 
> > (for quick&dirty shell scripts)
> 
> I think that makes very much sense. The socket is created by asterisk,
> is there a parameter to specify permissions/umask of that socket?

Looks like all there is needed is to uncomment the following line in
the default config file:

[files]
astctlpermissions = 0660

But since upstream defaults to not do so and only have this done by
the user, I wouldn't like to change this policy on the package level.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070123/c3cc8fdb/attachment.pgp


More information about the asterisk-users mailing list