[Kamailio-Users] sipgrep as non-privileged user

Alex Balashov abalashov at evaristesys.com
Wed Sep 24 20:40:28 CEST 2008


You could set the suid bit on the process so that it would effectively 
run as root even if invoked by a nonroot user.

Otherwise, yes, it is pretty standard to have to run this stuff as root.

Robert McNaught wrote:

> Hi,
> 
> I am using sipgrep to do sip traces on an openser/asterisk.  I am find
> this great for getting readable traces - previously ngrep was
> difficult to read.
> 
> However, to use sipgrep, I need to  be logged in as the linux root
> user.  I can change the PATH of an admin user so that they can have
> access to the command but they cannot use it as they need to be root
> in order to gain access to see the network traffic.  Does anyone know
> of a way to do this?  Is it normal to have engineers continually log
> in as root to take these traces - it seems awful dangerous?  I know
> you could log in as a non-prileged user and put in sudo sipgrep -f xxx
> -t xxx, but not sure if people are actually doing this in production
> systems, or have a workaround?
> 
> Thanks
> 
> Robert
> 
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599




More information about the Users mailing list