Page 1 of 1

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

Posted: Tue Oct 24, 2023 8:44 pm
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!


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

Posted: Thu Oct 26, 2023 5:05 am
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


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

Posted: Thu Oct 26, 2023 8:21 pm
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:


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

Posted: Fri Oct 27, 2023 5:16 am
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


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

Posted: Sat Nov 04, 2023 12:13 am
by Neo_78

...


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

Posted: Sat Nov 04, 2023 12:14 am
by Neo_78

Thanks @dr__Dan.

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

33434:33523/udp

:thumbup2:


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

Posted: Sat Nov 04, 2023 2:25 am
by Flash

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


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

Posted: Mon Nov 06, 2023 5:22 pm
by Neo_78

That is correct @Flash. Thank you!