[Asterisk-Users] Unable to connect to remote asterisk (does / var/run/asterisk.ctl exist?)

Erick Perez eaperezh at gmail.com
Mon Apr 3 10:17:28 MST 2006


Thanks Steven, I was building an RPM and forgot that.....
/etc/asterisk.conf was:
astrundir => /var/run

now is:
astrundir => /var/run/asterisk

Works perfectly.

thanks,



On 4/3/06, Erick Perez <eaperezh at gmail.com> wrote:
> I ran strace and got this:
> open("/var/run/asterisk.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1
> EACCES (Permission denied)
> open("/etc/localtime", O_RDONLY)        = 3
> Unable to open pid file '/var/run/asterisk.pid': Permission denied
>
> /var/run has root:root permissions.
>
>
> On 4/3/06, Colin Anderson <ColinA at landmarkmasterbuilder.com> wrote:
> > the user you are connecting as should have full rights to /var/run/asterisk:
> >
> >
> > http://www.voip-info.org/wiki-Asterisk+non-root
> >
> > hth
> >
> > -----Original Message-----
> > From: Erick Perez [mailto:eaperezh at gmail.com]
> > Sent: Monday, April 03, 2006 9:28 AM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: [Asterisk-Users] Unable to connect to remote asterisk (does
> > /var/run/asterisk.ctl exist?)
> >
> >
> > Hi, im running asterisk as another user (user x group x), While trying
> > to attach to the console I get this error:
> > [root at centos keys]# asterisk -rvvvvvvvv
> > Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
> > [root at centos keys]#
> >
> > the file exists and it is:
> > srwxr-xr-x  1 root root 0 Apr  1 20:32 /var/run/asterisk.ctl
> >
> > Suggestions?
> >
> > --
> >
> > -------------------------------------------
> > Erick Perez
> > Linux User 376588
> > http://counter.li.org/  (Get counted!!!)
> > Panama, Republic of Panama
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
> --
>
> -------------------------------------------
> Erick Perez
> Linux User 376588
> http://counter.li.org/  (Get counted!!!)
> Panama, Republic of Panama
>


--

-------------------------------------------
Erick Perez
Linux User 376588
http://counter.li.org/  (Get counted!!!)
Panama, Republic of Panama



More information about the asterisk-users mailing list