Re: [asterisk-users] asterisk as non root

2017-04-21 Thread Atux Atux
the output of ls -l is root@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@pbx: ~ $ On Thu, Apr 20, 2017 at 7:46 PM, Antony Stone < antony.st...@asterisk.open.source.it> wrote: > On Thursday 20 April 2017 at

Re: [asterisk-users] asterisk as non root

2017-04-20 Thread Antony Stone
On Thursday 20 April 2017 at 18:31:03, Atux Atux wrote: > root@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@PBX:

Re: [asterisk-users] asterisk as non root

2017-04-20 Thread Atux Atux
root@PBX: /var/www/html $ /etc/init.d/asterisk start [ ok ] Starting asterisk (via systemctl): asterisk.service. root@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

Re: [asterisk-users] asterisk as non root

2017-04-20 Thread Antony Stone
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

Re: [asterisk-users] asterisk as non root

2017-04-20 Thread Atux Atux
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? On Wed, Apr 19, 2017 at 10:47 PM, Antony Stone <

Re: [asterisk-users] asterisk as non root

2017-04-19 Thread Antony Stone
On Wednesday 19 April 2017 at 18:48:29, Atux Atux wrote: > Hi. > Here is the output of the command > > root@pbx: ~ $ find / -name asterisk -exec ls -ld '{}' \; > > drwxr-xr-x 3 root root 4096 Apr 19 17:32 /usr/include/asterisk > > drwxr-x--- 3 asterisk asterisk 4096 Apr 19 17:32

Re: [asterisk-users] asterisk as non root

2017-04-19 Thread Atux Atux
Hi. Here is the output of the command root@pbx: ~ $ find / -name asterisk -exec ls -ld '{}' \; drwxr-xr-x 3 root root 4096 Apr 19 17:32 /usr/include/asterisk drwxr-x--- 3 asterisk asterisk 4096 Apr 19 17:32 /usr/lib/asterisk -rwxr-xr-x 1 root root 9719880 Apr 19 17:27

Re: [asterisk-users] asterisk as non root

2017-04-19 Thread Tzafrir Cohen
On Wed, Apr 19, 2017 at 04:44:39PM +0300, Atux Atux wrote: > hello there. i am running debian 8 in my swerver and i would like to run > asterisk as non root. The Asterisk package included with Debian already does that. Why not have a look at it? > i did follow the >

Re: [asterisk-users] asterisk as non root

2017-04-19 Thread Antony Stone
On Wednesday 19 April 2017 at 15:44:39, Atux Atux wrote: > hello there. i am running debian 8 in my swerver and i would like to run > asterisk as non root. i did follow the > https://www.voip-info.org/wiki-Asterisk+non-root without any success. Did you do the very first step:

[asterisk-users] asterisk as non root

2017-04-19 Thread Atux Atux
hello there. i am running debian 8 in my swerver and i would like to run asterisk as non root. i did follow the https://www.voip-info.org/wiki-Asterisk+non-root without any success. when i issue root@PBX: ~ $ asterisk -U asterisk -G asterisk Privilege escalation protection disabled! See

Re: [asterisk-users] asterisk as non-root/best practices

2007-12-01 Thread Anthony Francis
Robert McNaught wrote: not in path [EMAIL PROTECTED] echo $PATH /usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/admin/bin Is /sbin in your path? CP Robert McNaught wrote: my problem is that a non-privileged user, eg admin,

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread Alan Lord
Robert McNaught wrote: thanks for the reply Tzafrir, I tried the below, but I think maybe I misexplained what I am trying to do. I have asterisk running as user asterisk - I followed the instructions in the Asterisk book and have everything stored in /home/asterisk/asterisk-bin - this

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread CunningPike
Well, there you go then - either add /usr/sbin to your path, or provide a full path thusly: /usr/sbin/asterisk -r CP Robert McNaught wrote: not in path [EMAIL PROTECTED] echo $PATH /usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/admin/bin

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread Steve Edwards
On Fri, 30 Nov 2007, Robert McNaught wrote: It seems that non-privileged users cannot run commands in sbin, but can in bin directories Unless something in your host is major league hosed, this is not true. Try: /sbin/runlevel /usr/sbin/ntpdate -q 0.us.pool.ntp.org Depending

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread Robert McNaught
not in path [EMAIL PROTECTED] echo $PATH /usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/admin/bin Is /sbin in your path? CP Robert McNaught wrote: my problem is that a non-privileged user, eg admin, cannot log in and connect to the

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread CunningPike
Is /sbin in your path? CP Robert McNaught wrote: my problem is that a non-privileged user, eg admin, cannot log in and connect to the console by issuing the following [EMAIL PROTECTED] asterisk -r bash: asterisk: command not found [EMAIL PROTECTED] whereis asterisk asterisk:

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread Robert McNaught
thanks for the reply Tzafrir, I tried the below, but I think maybe I misexplained what I am trying to do. I have asterisk running as user asterisk - I followed the instructions in the Asterisk book and have everything stored in /home/asterisk/asterisk-bin - this includes logs, pid files, configs

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-30 Thread Robert McNaught
thanks for the reply Tzafrir, I tried the below, but I think maybe I misexplained what I am trying to do. I have asterisk running as user asterisk - I followed the instructions in the Asterisk book and have everything stored in /home/asterisk/asterisk-bin - this includes logs, pid files,

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Robert McNaught
Thanks Tzafrir, I took the stuff out of visudo - it turns out the only way I could get this working was to create a symbolic link - /usr/bin/asterisk to point to /home/asterisk .asterisk - using the link created in /usr/sbin/ would not work for 'asterisk -r' It seems that all commands in

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Kristian Kielhofner
On Nov 21, 2007 12:37 PM, Robert McNaught [EMAIL PROTECTED] wrote: Thanks Tzafrir, I took the stuff out of visudo - it turns out the only way I could get this working was to create a symbolic link - /usr/bin/asterisk to point to /home/asterisk .asterisk - using the link created in

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Tzafrir Cohen
On Wed, Nov 21, 2007 at 09:37:50AM -0800, Robert McNaught wrote: Thanks Tzafrir, I took the stuff out of visudo - it turns out the only way I could get this working was to create a symbolic link - /usr/bin/asterisk to point to /home/asterisk .asterisk - using the link created in

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Tzafrir Cohen
On Wed, Nov 21, 2007 at 01:53:58PM -0500, Kristian Kielhofner wrote: (as root) chown -R asterisk:asterisk /etc/asterisk chmod -R 770 /etc/asterisk Nitpeeking: Now you made everything there executable. chmod -R o= /etc/asterisk chmod -R ug+rwX /etc/asterisk (Any shorter way?) In most cases

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Alan Lord
Robert McNaught wrote: Thanks Tzafrir, I took the stuff out of visudo - it turns out the only way I could get this working was to create a symbolic link - /usr/bin/asterisk to point to /home/asterisk .asterisk - using the link created in /usr/sbin/ would not work for 'asterisk -r' It

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-21 Thread Alan Lord
Tzafrir Cohen wrote: On Wed, Nov 21, 2007 at 01:53:58PM -0500, Kristian Kielhofner wrote: (as root) chown -R asterisk:asterisk /etc/asterisk chmod -R 770 /etc/asterisk Nitpeeking: Now you made everything there executable. chmod -R o= /etc/asterisk chmod -R ug+rwX /etc/asterisk

[asterisk-users] asterisk as non-root/best practices

2007-11-19 Thread Robert McNaught
Hi, I have set up asterisk to run as non root, and allow admin users to log in to the server as asterisk, which gives them privileges to edit configs in the asterisk home directory. As for connecting to the console with 'asterisk -r' - this by default does not work as asterisk is owned stored in

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-19 Thread Tzafrir Cohen
On Mon, Nov 19, 2007 at 08:51:21AM -0800, Robert McNaught wrote: Hi, I have set up asterisk to run as non root, and allow admin users to log in to the server as asterisk, which gives them privileges to edit configs in the asterisk home directory. The daemon runs as the user asterisk. There

Re: [asterisk-users] asterisk as non-root/best practices

2007-11-19 Thread Alan Lord
Robert McNaught wrote: Hi, I have set up asterisk to run as non root, and allow admin users to log in to the server as asterisk, which gives them privileges to edit configs in the asterisk home directory. As for connecting to the console with 'asterisk -r' - this by default does not

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-17 Thread Alan Lord
Robert McNaught wrote: Alan, What do you mean by the udev rules? I previously had asterisk compiled and running as user and group 'asterisk' zaptel and libpri were compiled and installed using user 'root' so the zaptel service was root. I had a dependency issue with asterisk trying

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-17 Thread Tzafrir Cohen
On Wed, Oct 17, 2007 at 08:43:59AM +0100, Alan Lord wrote: Robert McNaught wrote: Alan, What do you mean by the udev rules? I previously had asterisk compiled and running as user and group 'asterisk' zaptel and libpri were compiled and installed using user 'root' so the

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-16 Thread Robert McNaught
Alan, What do you mean by the udev rules? I previously had asterisk compiled and running as user and group 'asterisk' zaptel and libpri were compiled and installed using user 'root' so the zaptel service was root. I had a dependency issue with asterisk trying to access a file owned by root

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-16 Thread Tzafrir Cohen
On Tue, Oct 16, 2007 at 01:57:26PM -0700, Robert McNaught wrote: Alan, What do you mean by the udev rules? I previously had asterisk compiled and running as user and group 'asterisk' zaptel and libpri were compiled and installed using user 'root' so the zaptel service was root. I

[asterisk-users] asterisk at non-root / zaptel

2007-10-15 Thread Robert McNaught
Hi, In the 2nd edition of the Asterisk book, there is a section recommending running asterisk as non-root - tried this and it works. However, asterisk does not have permissions to view certain files relating to zaptel as in the following 'zap show status' command in the * CLI What would be the

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-15 Thread Tzafrir Cohen
On Mon, Oct 15, 2007 at 10:38:09AM -0700, Robert McNaught wrote: Hi, In the 2nd edition of the Asterisk book, there is a section recommending running asterisk as non-root - tried this and it works. However, asterisk does not have permissions to view certain files relating to zaptel as in

Re: [asterisk-users] asterisk at non-root / zaptel

2007-10-15 Thread Alan Lord
Robert McNaught wrote: Hi, In the 2nd edition of the Asterisk book, there is a section recommending running asterisk as non-root - tried this and it works. However, asterisk does not have permissions to view certain files relating to zaptel as in the following 'zap show status' command

[Asterisk-Users] Asterisk as non root

2004-02-05 Thread Chris Lee
I followed the wiki instructions: http://www.voip-info.org/wiki-Asterisk+non-root Now I have a working asterisk running as user asterisk. I do however have some problems: 1: I dont have access via asterisk -r 2: The pid file is no longer being updated 3: I want to create a file in init.d so that

Re: [Asterisk-Users] Asterisk as non root

2004-02-05 Thread Tilghman Lesher
On Thursday 05 February 2004 08:03, Chris Lee wrote: I followed the wiki instructions: http://www.voip-info.org/wiki-Asterisk+non-root Now I have a working asterisk running as user asterisk. I do however have some problems: 1: I dont have access via asterisk -r Permissions problem. User

Re: [Asterisk-Users] Asterisk as non root

2004-02-05 Thread Chris Lee
Tilghman Lesher wrote: Permissions problem. User asterisk needs to have permissions to write the file /var/run/asterisk.ctl 2: The pid file is no longer being updated Again, permissions problem. I was under the impression that changing the line:

Re: [Asterisk-Users] Asterisk as non root

2004-02-05 Thread Tilghman Lesher
On Thursday 05 February 2004 11:13, Chris Lee wrote: Tilghman Lesher wrote: Permissions problem. User asterisk needs to have permissions to write the file /var/run/asterisk.ctl 2: The pid file is no longer being updated Again, permissions problem. I was under the impression that

Re: [Asterisk-Users] Asterisk as non root

2004-02-05 Thread Fran Boon
On Thu, 2004-02-05 at 14:03, Chris Lee wrote: I followed the wiki instructions: http://www.voip-info.org/wiki-Asterisk+non-root Glad someone's finding it useful :) Now I have a working asterisk running as user asterisk. I do however have some problems: 1: I dont have access via asterisk -r