Could someone tell me how to set the default value of nice
(as displayed by top
) of a user? I have found that /etc/security/limits.conf is the place but if I put either:
username_of_a_guy - nice 19
username_of_a_guy soft nice 19
username_of_a_guy hard nice 19
It doesn't work (while it should, right?).
Note that I've rebooted since then.
Thank you very much in advance for any help. I'm using debian unstable (uptodate).
Context:
At my work, we have a local network: everyone has its own computer and everyone can create an account on someone else's machine if one likes. The rule of thumb is simply that if you work on someone else computer, please nice your processes (nice 19
).
I would like to set the default nice value for a given user to 19 once and for all.