From Wikipedia, the free encyclopedia
Computing desk
< April 4 << Mar | April | May >> April 6 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


April 5 Information

ionice and drop permissions

What's the proper way to start a process ionice'd as realtime but with the resulting process starting as a specific normal user instead of as root? 96.232.39.129 ( talk) 00:39, 5 April 2022 (UTC) reply

The ionice program affects scheduling of I/O in Linux. See the Linux General Commands Manual [1] . Philvoids ( talk) 17:31, 5 April 2022 (UTC) reply
Where we read "Realtime [...] This scheduling class is not permitted for an ordinary (i.e., non-root) user."  Card Zero   (talk) 18:09, 5 April 2022 (UTC) reply

ionice -c1 su linus -c /bin/whoami will run whoami with real-time IO as user linus LongHairedFop ( talk) 18:36, 5 April 2022 (UTC) reply

Exactly what I was looking for, thanks.
Resolved
96.232.39.129 ( talk) 10:31, 7 April 2022 (UTC) reply
From Wikipedia, the free encyclopedia
Computing desk
< April 4 << Mar | April | May >> April 6 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


April 5 Information

ionice and drop permissions

What's the proper way to start a process ionice'd as realtime but with the resulting process starting as a specific normal user instead of as root? 96.232.39.129 ( talk) 00:39, 5 April 2022 (UTC) reply

The ionice program affects scheduling of I/O in Linux. See the Linux General Commands Manual [1] . Philvoids ( talk) 17:31, 5 April 2022 (UTC) reply
Where we read "Realtime [...] This scheduling class is not permitted for an ordinary (i.e., non-root) user."  Card Zero   (talk) 18:09, 5 April 2022 (UTC) reply

ionice -c1 su linus -c /bin/whoami will run whoami with real-time IO as user linus LongHairedFop ( talk) 18:36, 5 April 2022 (UTC) reply

Exactly what I was looking for, thanks.
Resolved
96.232.39.129 ( talk) 10:31, 7 April 2022 (UTC) reply

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook