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

Danny Nicholas danny at debsinc.com
Mon Aug 24 14:20:02 CDT 2009


For a newbie, this would be preferable;
ps --no-headers -o uname -C asterisk

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of C. Chad
Wallace
Sent: Monday, August 24, 2009 2:13 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Need to now my "Asterisk User ID"


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





More information about the asterisk-users mailing list