How to fix iotop 'Netlink error: Operation not permitted (1)'

Problem:

You are trying to run iotop but you see an error message like

Solution

You need to run iotop as root:

The reason for this is that iotop needs to access kernel interfaces that are only accessible to root users or if the user/process has the CAP_NET_ADMIN capability. In theory you could add this capability using sudo setcap cap_net_admin+ep /usr/sbin/iotop but on Ubuntu 18.04 this did not work for me.


Check out similar posts by category: Linux