Sample Header Ad - 728x90

How do I start a process with a nice value of -20 and not give it root privilege?

30 votes
7 answers
67605 views
I would like to start a process with a nice value of -20. This requires me to use a command like
sudo nice -n -20 matlab
However, this starts matlab as root too. Is there a way to have matlab as non-root? My current approach is
sudo nice -n -20 sudo -u myusername matlab
which to me looks like a hack. Is there a direct approach to do this?
Asked by Lord Loh. (2076 rep)
Apr 18, 2013, 07:39 PM
Last activity: Jul 4, 2024, 11:35 AM