Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Traceroute on Php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
slurpyx
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 75

PostPosted: Tue Jul 19, 2005 10:11 am    Post subject: Traceroute on Php Reply with quote

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
View user's profile Send private message
slurpyx
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 75

PostPosted: Tue Jul 19, 2005 10:56 am    Post subject: Reply with quote

fyi: register global is on
Back to top
View user's profile Send private message
slurpyx
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 75

PostPosted: Tue Jul 19, 2005 11:36 am    Post subject: Reply with quote

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
View user's profile Send private message
slurpyx
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 75

PostPosted: Tue Jul 19, 2005 2:31 pm    Post subject: Reply with quote

(detailed) i put it in here: https://forums.gentoo.org/viewtopic-p-2585014.html#2585014
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jul 19, 2005 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
slurpyx
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 75

PostPosted: Wed Jul 20, 2005 1:47 am    Post subject: Reply with quote

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
View user's profile Send private message
fayefab
n00b
n00b


Joined: 16 Nov 2005
Posts: 3
Location: France

PostPosted: Wed Nov 16, 2005 11:57 am    Post subject: Traceroute PHP Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum