Comments (6)
Hi kdurov,
感谢您的反馈,这确实是一个权限验证逻辑上的 Bug
现在应该没问题了,请下载最新版本 v0.2.4-1
试试
不过我手里的测试样本可能不足以证明能在所有的环境中都能正常工作,也请您帮忙验证一下。
Thanks!
Best Regards,
Leo
from ntrace-core.
如无其他问题,此 issue 将被关闭,如果仍有疑问请另提新 issue
from ntrace-core.
谢谢。
刚测试本地环境无问题。
from ntrace-core.
macOS 下没有 setcap。
想请教下有什么别的办法能在 macOS 普通用户下执行么?
from ntrace-core.
对于 macOS (Darwin) 来说,权限设计是更为严格的。可惜目前 macOS 并没有能够达到 setcap 相似功能的指令集,NextTrace 的 net_raw
(原始包监听)是必要的一个权限,对于 Go 开发的路由跟踪,可能目前没有很好的办法去避免(除非使用 syscall
,但是 syscall
也会涉及到 root 权限的需要)。
网上也有很多关于这方面的讨论,目前对于 macOS 来说,只能通过 sudo 或者以 root 用户运行。
这些内容可能对你有所帮助:
- https://news.ycombinator.com/item?id=14168124
- https://unix.stackexchange.com/questions/271819/enable-linux-capabilities-on-macos
Thanks.
from ntrace-core.
感谢指教。
看来只能通过 alias 配合 visudo 简化命令了。
from ntrace-core.
Related Issues (20)
- `--source` and `--dev` doesn't work on macOS HOT 2
- 自动安装脚本在Debian桌面使用sudo无法安装但切换到root用户正常
- 你好 目前的版本是不是不再支持macos bigsur 以下的版本呢? HOT 1
- No map url showed HOT 2
- 还是besttrace好 HOT 1
- 不推荐用这个 HOT 1
- 在Windows平台上使用时如果采用本地dns服务nexttrace会报错 HOT 11
- 告别信:离开NextTrace的决定 HOT 4
- Windows版本exe文件安装失败 HOT 2
- [公告]关于IP2Location加入本项目黑名单的一些说明 HOT 1
- 写了一篇nexttrace深度剖析以及用法总结,涵盖了各个参数 HOT 1
- 意外的 IP connection has been timeout HOT 32
- [Bug] Something wrong with the latency check in latest version in WSL. HOT 4
- ip归属地无法显示 HOT 3
- 是否考虑支持mtr HOT 1
- 没有 ptr 记录的 dn42 地址无法正确返回网络信息 HOT 1
- ip 地区错误 HOT 1
- panic with dn42 flag HOT 1
- -F 的时候能否选择哪个地区? HOT 4
- Minimal setcap requirement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntrace-core.