I want to allow users to set a
nicelevel lower than 0 (and any
nice level really) in my system. I'm testing by logging in again as a user of the affected user group after I set the change and trying:
nice -n -18 sleep 1
Which keeps producing the message:
nice: cannot set niceness: Permission denied
I also check
ulimit -a which doesn't change after saving my changes in
I have tried reading some google results. And came up with this in my
@mygroup soft nice -20 @mygroup hard nice 18
I also tried the reverse, since nice is reversed (so
hard -20 and
soft 18), which didn't work.
As some google results suggested I made sure the line:
session required pam_limits.so
Is not commented in my
/etc/pam.d/login file (it wasn't when I first checked).
Any suggestions how to enable this?
I am using Ubuntu 12.04 precise.