Use mtr w/o sudo
You have to allow mtr to use sudo itself so you don't have to start the command with sudo.
First change user to some working as admin. Then:
sudo chown root /opt/homebrew/Cellar/mtr/0.95/sbin/mtr-packet
sudo chmod 4755 /opt/homebrew/Cellar/mtr/0.95/sbin/mtr-packet
Then exit this user and do:
ln -s /opt/homebrew/Cellar/mtr/0.95/sbin/mtr /opt/homebrew/bin/
ln -s /opt/homebrew/Cellar/mtr/0.95/sbin/mtr-packet /opt/homebrew/bin/
Now mtr is working for this non admin user. Example:
mtr -z fritz.box
source: https://blog.dave-bell.co.uk/2020/01/06/using-mtr-on-os-x-without-sudo
No comments to display
No comments to display