[asterisk-bugs] [Asterisk 0011123]: [patch] Implement asterisk CLI permissions.

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Dec 6 19:14:24 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11123 
====================================================================== 
Reported By:                eliel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11123
Category:                   Core-General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 87627 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-30-2007 13:50 CDT
Last Modified:              12-06-2007 19:14 CST
====================================================================== 
Summary:                    [patch] Implement asterisk CLI permissions.
Description: 
Restrict users to run only a subset of commands allow (configured by an
administrator).
You need write access to the asterisk.ctl socket file.
This is useful when you need to allow run commands on the asterisk CLI to
some users for support purposes also is a secure manner to prevent commands
like 'restart now' or 'stop now' being executed by mistake. 
====================================================================== 

---------------------------------------------------------------------- 
 eliel - 12-06-07 19:14  
---------------------------------------------------------------------- 
On the [general] you have default_perm=allow|disallow

allow=all
disallow=all
allow|disallow="command name"

If command name is incomplete will match all the other subsequent commands
like:
allow=sip   <-- all commands starting with sip will be allowed (sip show
peers, sip show peer, etc).
The configuration is simple like this.

I think we could added the possibility to allow or disallow permissions to
a group:

[@groupname] 
disallow=all
allow=core set verbose

Will disallow all cli commands for users in the group 'groupname', if the
user has a specific 'context' will overwrite the group config. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-06-07 19:14  eliel          Note Added: 0074989                          
======================================================================




More information about the asterisk-bugs mailing list