LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2016, 02:41 AM   #1
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 61

Rep: Reputation: Disabled
use sched_setscheduler as non-root user


Hello,

I want to use the sched_setscheduler API from a process which is of non-root user.

I get message as permission not permitted.

How to run this API from non-root user process ?
 
Old 09-29-2016, 01:52 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,810
Blog Entries: 10

Rep: Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726Reputation: 1726
Short answer is that you can't and you don't.
 
Old 09-30-2016, 12:53 AM   #3
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 61

Original Poster
Rep: Reputation: Disabled
Thank you all I am using echo "password" | su -c "chrt -f -p PRIO PID" - root to achieve this
 
Old 10-01-2016, 01:00 AM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 820
Blog Entries: 10

Rep: Reputation: 251Reputation: 251Reputation: 251
here's some thoughts on 'why not allow'...
You could always modify your version of the kernel (like...)

Last edited by Jjanel; 10-01-2016 at 01:01 AM.
 
  


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
config root user and non-root user in linux chuikingman Linux - Server 3 05-16-2015 02:32 AM
how can i write to a root:root 750 file with a non-root user? Droa Linux - Newbie 1 05-14-2012 07:49 PM
Does have a user in group 'root' all the rights as the user 'root'? thomas2004ch Linux - Newbie 4 08-12-2010 05:18 AM
How to change a process running in root-user to non-root user ???????????????????? narendra1310 Linux - Software 4 10-29-2009 02:11 AM
priority value to be given in sched_setscheduler VGM Linux - General 1 10-05-2009 03:07 AM


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