I want a reduced priority for non-root users on CentOS. In /etc/security/limits.conf, do I need to specify this with a default, wildcard-domain entry and also provide one for root, so that a root user does not use this priority?
The man page for limits.conf on Ubuntu says, "NOTE: group and wildcard limits are not applied to the root user. To set a limit for the root user, this field must contain the literal username root." By contrast, the man page for limits.conf on CentOS does not mention this. When I add
* - priority 15 to limits.conf on CentOS, then ssh in as root, my nice is set to 15. Without that entry, it's 0. If I also add
root - priority 0, root nice is once again 0, but this line shouldn't be needed, should it?