LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 12:19 PM   #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, 12:59 PM   #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


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 05:53 PM
nice / renice question Grobbendonk Linux - Newbie 5 08-13-2005 05:05 PM
nice/renice crashes programs make Mandriva 1 04-20-2005 04:03 AM
nice and renice (question) podollb Linux - Software 7 10-19-2004 01:10 PM
"nice" vs "renice" Poetics Linux - Newbie 2 07-03-2003 05:20 AM


All times are GMT -5. The time now is 04:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration