I have a high priority service that I start with sudo nice -n -10 process
. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.
How do I run a process with elevated priority, without also running it as root?
Best Answer
Check out
/etc/security/limits.conf
. There you can specify which priorities that users or groups are allowed to use. Manual page:man 5 limits.conf