Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-17-2003, 11:19 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
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!
Old 09-17-2003, 11:59 AM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nice / renice problem g-string 3 Linux - Software 2 09-16-2005 04:53 PM
nice / renice question Grobbendonk Linux - Newbie 5 08-13-2005 04:05 PM
nice/renice crashes programs make Mandriva 1 04-20-2005 03:03 AM
nice and renice (question) podollb Linux - Software 7 10-19-2004 12:10 PM
"nice" vs "renice" Poetics Linux - Newbie 2 07-03-2003 04:20 AM

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration