Behebung von iotop 'Netlink error: Operation not permitted (1)'
English
Deutsch
Problem:
Du versuchst, iotop auszuführen, aber du siehst eine Fehlermeldung wie
iotop_error_output.txt
Netlink error: Operation not permitted (1)
The Linux kernel interfaces that iotop relies on now require root priviliges
or the NET_ADMIN capability. This change occured because a security issue
(CVE-2011-2494) was found that allows leakage of sensitive data across user
boundaries. If you require the ability to run iotop as a non-root user, please
configure sudo to allow you to run iotop as root.
Please do not file bugs on iotop about this.Lösung
Du musst iotop als root ausführen:
sudo_iotop.sh
sudo iotopDer Grund dafür ist, dass iotop auf Kernel-Schnittstellen zugreifen muss, die nur für root-Benutzer oder wenn der Benutzer/Prozess die CAP_NET_ADMIN-Capability hat, zugänglich sind. Theoretisch könntest du diese Capability mit sudo setcap cap_net_admin+ep /usr/sbin/iotop hinzufügen, aber auf Ubuntu 18.04 funktionierte dies für mich nicht.
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow