root at PBX: /var/www/html $ /etc/init.d/asterisk start [ ok ] Starting asterisk (via systemctl): asterisk.service. root at PBX: /var/www/html $ ps aux | grep asterisk asterisk 1007 0.7 2.3 67128 23748 ? Ssl Apr19 8:49 /usr/sbin/asterisk -U asterisk -G asterisk root 4186 0.0 0.1 4192 1992 pts/0 S+ 17:30 0:00 grep asterisk root at PBX: /var/www/html $ /usr/sbin/asterisk ?rx "sip show peers" Privilege escalation protection disabled! See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk -r' to connect. root at PBX: /var/www/html $ On Thu, Apr 20, 2017 at 1:36 PM, Antony Stone < Antony.Stone at asterisk.open.source.it> wrote:> On Thursday 20 April 2017 at 12:31:14, Atux Atux wrote: > > > Hi. thanks a lot for your replies. I did stop the services and i did > issued > > the the "chown" and "chmod" commands listed in the guide. > > It is necessary to compile it, instead if using the apt-get version > > What am i missing? > > Let's go back to basics for a moment - you say this is a Debian system - > in my > experience Debian already runs Asterisk as the "asterisk" user and not as > root, so let's see what you have. > > 1. Start Asterisk (probably using "/etc/init.d/asterisk start", or maybe > "service asterisk start") > > 2. Check who it's running as: "ps aux | grep asterisk" > > > Antony. > > > -- > What makes you think I know what I'm talking about? > I just have more O'Reilly books than most people. > > Please reply to the > list; > please *don't* CC > me. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk. > org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170420/59179490/attachment.html>
On Thursday 20 April 2017 at 18:31:03, Atux Atux wrote:> root at PBX: /var/www/html $ /etc/init.d/asterisk start > [ ok ] Starting asterisk (via systemctl): asterisk.service.I'm somewhat puzzled that your root-user prompt is "$" instead of the more normal "#", but never mind...> root at PBX: /var/www/html $ ps aux | grep asterisk > asterisk 1007 0.7 2.3 67128 23748 ? Ssl Apr19 8:49 /usr/sbin/asterisk -U asterisk -G asteriskSo, the first column of that output shows you that asterisk is running as the user "asterisk". On my Debian system I only have "-U asterisk" without the "-G asterisk".> root 4186 0.0 0.1 4192 1992 pts/0 S+ 17:30 0:00 grep asterisk...and the grep command was run by "root"> root at PBX: /var/www/html $ /usr/sbin/asterisk ?rx "sip show peers" > Privilege escalation protection disabled! > See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. > Asterisk already running on /var/run/asterisk/asterisk.ctl. Use 'asterisk > -r' to connect.Who does "ls -l" show you that file /var/run/asterisk/asterisk.ctl is owned by? On my machine it's: srwxrwx--- 1 asterisk asterisk 0 Apr 11 10:32 /var/run/asterisk/asterisk.ctl Antony. -- There's a good theatrical performance about puns on in the West End. It's a play on words. Please reply to the list; please *don't* CC me.
the output of ls -l is root at pbx: ~ $ ls -l /var/run/asterisk/asterisk.ctl srwxr-xr-x 1 asterisk asterisk 0 Apr 20 19:47 /var/run/asterisk/asterisk.ctl root at pbx: ~ $ On Thu, Apr 20, 2017 at 7:46 PM, Antony Stone < Antony.Stone at asterisk.open.source.it> wrote:> On Thursday 20 April 2017 at 18:31:03, Atux Atux wrote: > > > root at PBX: /var/www/html $ /etc/init.d/asterisk start > > [ ok ] Starting asterisk (via systemctl): asterisk.service. > > I'm somewhat puzzled that your root-user prompt is "$" > instead of the more normal "#", but never mind... > > > root at PBX: /var/www/html $ ps aux | grep asterisk > > asterisk 1007 0.7 2.3 67128 23748 ? Ssl Apr19 8:49 > /usr/sbin/asterisk -U asterisk -G asterisk > > So, the first column of that output shows you that asterisk is > running as the user "asterisk". > > On my Debian system I only have "-U asterisk" without the "-G asterisk". > > > root 4186 0.0 0.1 4192 1992 pts/0 S+ 17:30 0:00 grep > asterisk > > ...and the grep command was run by "root" > > > root at PBX: /var/www/html $ /usr/sbin/asterisk ?rx "sip show peers" > > Privilege escalation protection disabled! > > See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details. > > Asterisk already running on /var/run/asterisk/asterisk.ctl. Use > 'asterisk > > -r' to connect. > > Who does "ls -l" show you that file /var/run/asterisk/asterisk.ctl > is owned by? > > On my machine it's: > > srwxrwx--- 1 asterisk asterisk 0 Apr 11 10:32 > /var/run/asterisk/asterisk.ctl > > > Antony. > > -- > There's a good theatrical performance about puns on in the West End. It's > a play on words. > > Please reply to the > list; > please *don't* CC > me. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk. > org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170421/7ed3186b/attachment.html>