/ sys文件系统的权限

在Ubuntu中,/ sys文件系统的权限比默认的Debian安装要严格得多。 如果我有一个程序试图在Ubuntu上访问/ sys / class / net / eth0,那么没有问题,但在Debian中,权限被locking。

我现在明白/ sys被创build为查询/更新内核值的虚拟空间,但是我不知道如何修改/ sys创build的权限。 在编译内核时它是一个configuration选项吗? 可以使用像sysfsutils这样的工具来修改吗?

编辑:我已经意识到,我的Debian安装可能已经从我正在使用的服务器主机进行修改。 任何想法,他们如何修改目录的权限?

total 4 dr-xr-xr-x 11 root root 0 Oct 2 11:43 . drwxr-xr-x 22 root root 4096 Sep 23 13:32 .. drwx------ 2 root root 0 Oct 2 11:43 block drwx------ 28 root root 0 Oct 2 11:43 bus drwx------ 67 root root 0 Oct 2 11:43 class drwx------ 4 root root 0 Oct 2 11:43 dev drwxr-xr-x 18 root root 0 Oct 2 11:43 devices drwx------ 4 root root 0 Oct 2 11:43 firmware drwxr-xr-x 11 root root 0 Oct 2 11:43 fs drwx------ 10 root root 0 Oct 2 11:43 kernel drwx------ 196 root root 0 Oct 2 11:43 module

问题在于提供者。 安装完库内核后,事情开始正常运行。

我使用这个线程来改变默认的GRUBselect。