a-Shell-commands icon indicating copy to clipboard operation
a-Shell-commands copied to clipboard

Network commands

Open eddiewong396 opened this issue 1 year ago • 5 comments

How do you add more network commands? I was trying traceroute but command not found.

eddiewong396 avatar Sep 26 '24 00:09 eddiewong396

Most network commands have to be compiled natively, since they need access to system calls. So they cannot be added after the app has been submitted. I regularly add new commands to the binaries that are embedded with the app.

traceroute, specifically (and all the commands with the same functionality) require root privilege in order to run. So it cannot be added to an official app approved on the AppStore.

holzschu avatar Sep 26 '24 07:09 holzschu

Hey I would like to work on this issue. Can you assign me.

5shreya avatar Sep 30 '24 15:09 5shreya

traceroute, specifically (and all the commands with the same functionality) require root privilege in order to run. So it cannot be added to an official app approved on the AppStore.

that can’t be true as HE Network Tools has traceroute functionality. Besides that, it can be run without root on Linux, so it can possibly need so many permissions

VoidAny avatar Oct 08 '24 04:10 VoidAny

I cannot comment on HE Network Tools, but for all Unix machines including Linux, if you take a close look at the traceroute binary:

% which traceroute
/usr/sbin/traceroute
% ls -l /usr/sbin/traceroute
-r-sr-xr-x  1 root  wheel  171856 19 Jul 05:08 /usr/sbin/traceroute

you'll see that it is a binary that belongs to root (which is normal), with an s instead of an x in execution permission, which means that when it's launched by a user, it will run with the same permissions as if it had been launched by the owner, in this case root.

holzschu avatar Oct 08 '24 05:10 holzschu

Uploading JPG07689.jpeg…

ghost avatar Oct 27 '24 18:10 ghost