• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1041
  • Last Modified:

Linux Process Priority for a particular user

I would like to know if there is any known way to set the default Process Priority for a particular user.

I know that you can use the "nice" command to adjust a process priority, and that for any user the default priority is 0. But is there any way to have a all a user's processes by default set to a particular value.

1 Solution
I don't know for sure if there is a way to do the job by tweaking settings/installing progs/... but I suggest one trick that may work for you.
AFAIK all child processes in linux start with nice value of it's parent. So if you renice users login shell (for example from a startup script) before user spawns more processes, all subsequent child processes will get a nice value of a login shell. Does it make sense?
If You use pam, then
is for You. There are examples, You should easily understand how to set the priority value for particular user or group.
rbttAuthor Commented:
Thank you. I did look in there, but didn't notice the "priority" setting in the examples.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now