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.

Elvis.
rbttAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rokovCommented:
Hi!
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?
0
ravenplCommented:
If You use pam, then
/etc/security/limits.conf
is for You. There are examples, You should easily understand how to set the priority value for particular user or group.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rbttAuthor Commented:
Thank you. I did look in there, but didn't notice the "priority" setting in the examples.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.