-   Linux - General (
-   -   Nice and Renice (

KnightAzul 09-17-2003 11:19 AM

Nice and Renice

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!

Crashed_Again 09-17-2003 11:59 AM

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 02:00 AM.