LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 0
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
 
Old 09-17-2003, 11:59 AM   #2
Crashed_Again
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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