How to run traceroute as a standard (non-root) user? (Solved)

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

How to run traceroute as a standard (non-root) user? (Solved)

Post by Neo_78 »

I am trying to run a traceroute in 814 under a non-root account to track down some connectivity issues.

For instance traceroute google.com gives the following error: traceroute: socket: Operation not permitted.

sudo traceroute google.com gives the following error: 1 traceroute: sendto: Operation not permitted.

Is this the expected behaviour? Could this be a firewall issue?

Is there no way to run a traceroute or a similar command as a standard user?

Thanks for your feedback!

User avatar
dr__Dan
Posts: 84
Joined: Tue Jul 28, 2020 5:06 am
Has thanked: 55 times
Been thanked: 28 times

Re: How to run traceroute as a standard (non-root) user?

Post by dr__Dan »

hello Neo_78,

This is what happened for me, running 813:

Code: Select all

Dan$ traceroute google.com
traceroute to google.com (142.251.211.238), 64 hops max
traceroute: socket: Operation not permitted
Dan$ sudo traceroute google.com
Password: 
traceroute to google.com (142.251.211.238), 64 hops max
  1   XXX.XXX.XXX.XXX  1.774ms  104.766ms  3.077ms 
  2   XXX.XXX.XXX.XXX  6.823ms  3.086ms  7.370ms 
  3   XXX.XXX.XXX.XXX  5.812ms  5.779ms  5.409ms 
  4   Blah_blah_blah  9.143ms  8.665ms  8.401ms 
  5   These numbers  11.137ms  10.538ms  10.456ms 
  6   hardly matter but  14.092ms  15.286ms  13.024ms 
  7   I'm obscuring them  15.759ms  16.233ms  12.949ms 
  8   just the same  13.007ms  13.036ms  13.611ms 
  9   142.251.211.238  13.677ms  12.065ms  11.839ms 
Dan$ 

I've been running this savefile since soon after 813 came out, and made many changes, but not much in the way of permissions, and I almost never use this particular user, in case any of that is of assistance.

Dan

9 years on with Fatdog64. :D

Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: How to run traceroute as a standard (non-root) user?

Post by Neo_78 »

Thanks @dr__Dan.

Could this be a firewall issue then related to eztables?

Does anyone know which port(s) and protocol the traceroute implementation on Fatdog requires to be open? :roll:

User avatar
dr__Dan
Posts: 84
Joined: Tue Jul 28, 2020 5:06 am
Has thanked: 55 times
Been thanked: 28 times

Re: How to run traceroute as a standard (non-root) user?

Post by dr__Dan »

@Neo_78,

This might help:

https://stackoverflow.com/questions/109 ... p-and-port

sudo traceroute --help

Perhaps someone else will add more detail.

Dan

9 years on with Fatdog64. :D

Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: How to run traceroute as a standard (non-root) user?

Post by Neo_78 »

...

Last edited by Neo_78 on Sat Nov 04, 2023 12:14 am, edited 1 time in total.
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: How to run traceroute as a standard (non-root) user?

Post by Neo_78 »

Thanks @dr__Dan.

The solution is to allow the following port range in eztables:

33434:33523/udp

:thumbup2:

User avatar
Flash
Moderator
Posts: 1003
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 56 times
Been thanked: 135 times

Re: How to run traceroute as a standard (non-root) user?

Post by Flash »

@Neo_78, so your question has been answered, you can run traceroute as a non-root user?

Chaos coordinator :?
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: How to run traceroute as a standard (non-root) user? (Solved)

Post by Neo_78 »

That is correct @Flash. Thank you!

Post Reply

Return to “Software”