LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2014, 05:16 PM   #1
redbot
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
Question Starting a program with Nice value < 0 as a non-root user


I have some games that seem to benefit from being renice'ed (as in, the "renice" command) to a negative "nice" value. However, to do so I have to fire up a root login.

I'm about ready to write a renice wrapper to be run setuid root which can search for the games in the output of the "ps" command and renice them accordingly, but I feel like I must be re-inventing a wheel.

Is there an existing way to let users launch certain programs with negative "nice" values, or re-nice them to negative "nice" values, without root privileges?
 
Old 12-21-2014, 11:51 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Only root or user from wheelers group can set nice value less than zero. Other users can only change it to above zero.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting scripts with non root user. linux_neophyte Linux - Enterprise 3 08-18-2014 12:47 AM
Start a program for a user as root, with process belonging to user gnashley Programming 4 03-19-2007 01:58 PM
auto starting program as root? marsques Slackware 6 09-06-2005 01:40 AM
X server not starting as non root user Draylath Linux - Newbie 16 06-25-2004 02:02 PM
Starting program as different user ngomong Linux - General 2 05-10-2002 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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