[asterisk-users] Need to now my "Asterisk User ID"
C. Chad Wallace
cwallace at lodgingcompany.com
Mon Aug 24 14:13:02 CDT 2009
At 9:04 AM on 24 Aug 2009, Steve Edwards wrote:
> 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
$ ps -fC asterisk
Or for the uid:
$ ps --no-headers -o uid -C asterisk
--
C. Chad Wallace, B.Sc.
The Lodging Company
http://www.skihills.com/
OpenPGP Public Key ID: 0x262208A0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090824/5c0bf2d0/attachment.pgp
More information about the asterisk-users
mailing list