LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Nice and Renice (http://www.linuxquestions.org/questions/linux-general-1/nice-and-renice-93811/)

KnightAzul 09-17-2003 12:19 PM

Nice and Renice
 
Hi,

Ideally I would like to run a <command> the following from *my* regular (non root) user:

nice --7 <command>

However it would appear (for good reasons!) that a regular user cannot execute a command with a nice level of -7. Only root can do this. Is there a way around this without giving *my* regular user exactly the same rights as root? (not even sure that this possible!)

It would seem that I have to use another option which is to use the renice command with root after the regular user has launched the <command>:

renice -7 -g <PID of the <command>)

Is this the only way to achieve what I want without running the <command> as root??

Many thanks for any help!
Tony

Crashed_Again 09-17-2003 12:59 PM

Well you could set up sudo and allow your regular user to have full privelages on the nice command.


All times are GMT -5. The time now is 07:25 PM.