[asterisk-users] Need to now my "Asterisk User ID"

Steve Edwards asterisk.org at sedwards.com
Mon Aug 24 11:04:40 CDT 2009


Un-top-posting...

> jonas kellens wrote:
>>
>> How do I know my "Asterisk User ID" ??

On Mon, 24 Aug 2009, bails wrote:

> Type 'id asterisk' at your command line. It should return uid gid and 
> all groups the asterisk user belongs to.

This assumes you have a user named asterisk. Also assumes that Asterisk is 
running as the user named asterisk.

There's probably a "more proper" way, but this works:

~$ ps -ef | grep /sbin/asterisk | grep -v grep

You should get something like:

root     12477 12476  0 Aug03 ?        00:02:09 /usr/sbin/asterisk -f -g -n -p -q

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list