Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setting up setuid for iotop

DBA092012Nov 24 2017 — edited Nov 24 2017

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.

This post has been answered by Andris Perkons-Oracle on Nov 24 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2017
Added on Nov 24 2017
1 comment
1,164 views