On Wednesday 16 July 2008 14:49:03 Andre Courchesne - Prival wrote:
> How can I grant an other user asterisk cli access (asterisk -rxxx) ?
>
> My asterisk is running as user asterisk, but I want user zzblue to be able
> to have asterisk cli access...

You can use sudo to allow the user zzblue to run the command. Sudo is a utility 
that allows users to 
run commands as other users. Just run `visudo`

And at the bottom of the file add the line:

zzblue  ALL = (asterisk) /path/to/asterisk -rxxx

Then save and quit.

This line means, the user zzblue, on any host (The ALL part, but in this case 
only your asterisk 
server) can run the exact command `/path/to/asterisk -rxxx` as the user 
asterisk. 

You can change the (asterisk) part to (useraccount_that_runs_asterisk) or (ALL) 
 which will mean as 
root. But be carefull if you put (ALL) to replace (asterisk) as I don't know if 
in the asterisk 
shell if you can run other system commands. 

If you leave out the -rvvv part, you can let the user run the asterisk command 
with other options. 
By putting in the options, the user MUST include those exact options.

see more with `man sudoers` and `man visudo`.


Regards,
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to