linux - 除非在 debian 中以 root 身份运行,否则无法运行 vnstat

标签 linux debian root

所以,我需要运行这个命令:

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。

关于linux - 除非在 debian 中以 root 身份运行,否则无法运行 vnstat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18447757/

相关文章:

c - 默认属性和 pthread_create() POSIX C linux

linux - 在 Linux 中无休止的 pgrep 向我发送电子邮件——我该如何阻止它?

linux - 使用带有 --parseopt 的 git rev-parse 访问 shell 脚本中的命名参数

linux - Web 服务提供商的负载平衡器

android - 更改 root android 设备的 CPU 调速器

linux - 在 Ubuntu 中使用 ffmpeg 提取视频的时间

javascript - V8 中的 fatal error

macos - 无法解析类型 java.util.Map$Entry。 Mac OS 与 Debian 问题?

python-3.x - 使用 tkinter OOP 安排事件顺序

java - 无法弄清楚为什么我的应用程序请求 root...?