Hello everybody.
As you understand that sometimes it is quiet handy to have an unprivileged user to be able to run iotop for sum monitoring purposes so i'tried to provide such privileges but still have a problem unsolved. Please advise on the matter.
[usv@49-DEV-DWH-01 ~]$ which iotop
/usr/sbin/iotop
[usv@49-DEV-DWH-01 ~]$ ls -l /usr/sbin/iotop
-rwxr-xr-x. 1 root root 495 Jun 10 2014 /usr/sbin/iotop
[usv@49-DEV-DWH-01 ~]$ iotop
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.
[usv@49-DEV-DWH-01 ~]$ sudo -s
[sudo] password for usv:
[root@49-DEV-DWH-01 usv]# chmod u+s $(which iotop)
[root@49-DEV-DWH-01 usv]# exit
[usv@49-DEV-DWH-01 ~]$ ls -l /usr/sbin/iotop
-rwsr-xr-x. 1 root root 495 Jun 10 2014 /usr/sbin/iotop
[usv@49-DEV-DWH-01 ~]$ iotop
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.