Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以,我需要运行这个命令:
vnstat -tr
但是作为我刚刚创建的用户,而不是 root,作为 root 可以正常工作,但是作为普通用户,我得到了这个:
Error: Unable to get interface "eth0" statistics. Error: Interface "eth0" not available, exiting.
操作系统:Debian Linux 6.0.6
问题是 grsecurity 锁定 /proc/net/dev 以防止用户查看它。解决方案是从 ovhs linux 核心从 3.10.X 降级到 3.8.13。