Define two runusers?

General discussions about Asterisk.

Moderators: Moderator, Support

Define two runusers?

Postby ifp » Mon Nov 09, 2015 6:42 am

Hello,

I have an idea in my mind, and I don't know if it's possible to carry it out in Asterisk, so here is the deal:

I want to create two different users to control Asterisk: one "main" user, to perform the daily maintenance and modify files if neccesary (basically a restringed root), and a second "auxiliar" user, whose only function is to monitor the Asterisk console. I don't really care about the privileges of the user, so if the auxliar user can modify files, that is not a problem; the issue here is that I haven't been able to configure Asterisk to work with both users.

I have created both users, add them to the Wheel group, and modify the asterisk.conf file:
Code: Select all
runuser = root
runuser = main
runuser = auxiliar
rungroup = wheel


I have also changed the group ownership of the configuration files to Wheel. However, I'm only able to run Asterisk as user auxiliar, but not as user main.

So my question is, is it possible to implent this kind of behaviour, or Asterisk only allows one user to run the service (in addition to root)?

Best regards
ifp
Newsterisk
 
Posts: 4
Joined: Fri Sep 11, 2015 8:04 am

Re: Define two runusers?

Postby david55 » Mon Nov 09, 2015 8:28 am

Unix/Linux processes can only have one rungroup and one runuser at a time.

This appears to be a support question.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 2 guests