Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to allow non root users to perform real time scheduling

Status
Not open for further replies.
Dec 18, 2002
59
GB
Hi gurus, Is it possible to change the default scheduling policies to SCHED_FIFO and SCHED_RR instead of default (SCHED_OTHER)
On Fedora4 linux only users with superuser privileges can use
the scheduling policies SCHED_FIFO and SCHED_RR. While the default policy (SCHED_OTHER), which is available to all users, performs non-realtime scheduling.
I need to give ordinary users to perform real time scheduling
Please advise where I can change the default for this or how to setup permissions.
Your help would be much appreciated.
 
Only root can do it. So your best bet is to use sudo and configure which specific users can run the specific command to change the scheduling (assuming it's an echo into some file in /proc/sys/whatever). With sudo, the users only need to know their own password to get superuser euid and you can lock it down so that only that one command can get run. They get no shell as root, they can only run that one command and it exits back to their regular user in the shell.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top