View previous topic :: View next topic |
Author |
Message |
slurpyx Tux's lil' helper
Joined: 02 Feb 2005 Posts: 75
|
Posted: Tue Jul 19, 2005 10:11 am Post subject: Traceroute on Php |
|
|
I tried playing around with php and traceroute..
found a couple of scripts..
one of them is :
http://www.theworldsend.net/trace_src.php
the thing is.. i can do ping.. but i cant do traceroute.. is this somesort of a permission issue? |
|
Back to top |
|
|
slurpyx Tux's lil' helper
Joined: 02 Feb 2005 Posts: 75
|
Posted: Tue Jul 19, 2005 10:56 am Post subject: |
|
|
fyi: register global is on |
|
Back to top |
|
|
slurpyx Tux's lil' helper
Joined: 02 Feb 2005 Posts: 75
|
Posted: Tue Jul 19, 2005 11:36 am Post subject: |
|
|
traceroute is a sysadmin tool. and it can only be accessed by root.
how do i install traceroute to be used by an ordinary user?
i tried chown on my script. and make it a wheel group.. didnt work.. |
|
Back to top |
|
|
slurpyx Tux's lil' helper
Joined: 02 Feb 2005 Posts: 75
|
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Tue Jul 19, 2005 3:12 pm Post subject: |
|
|
You may want to call tracepath, which can be run by any user. It's part of net-misc/iputils and installed into /usr/sbin/ at least on my system.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
slurpyx Tux's lil' helper
Joined: 02 Feb 2005 Posts: 75
|
Posted: Wed Jul 20, 2005 1:47 am Post subject: |
|
|
tracepath can only be used by root. in my system..
how do i configure traceroute to run on /bin
i tried a sym link.. also put'n a path on my script. i.e /usr/sbin/traceroute can and will work on as any user buy my script is still getting per. denied.
|
|
Back to top |
|
|
fayefab n00b
Joined: 16 Nov 2005 Posts: 3 Location: France
|
Posted: Wed Nov 16, 2005 11:57 am Post subject: Traceroute PHP |
|
|
The best solution is to use sudo.
with that your apache can use traceroute cmd line.
Is use this solution for my website http://www.generationip.com
Have a nice day _________________ Work for a better world
http://www.generationip.com |
|
Back to top |
|
|
|