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
signature.asc
Description: PGP signature
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users