LinuxQuestions.org
Visit Jeremy's Blog.
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 01-05-2007, 06:09 AM   #1
tim_c
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
I want a group to nice and renice the processes of other users of the same group


I have a group of users in a group called 'admin'. I want them to be able to nice and renice the processes of the other users of the 'admin' group.

And, quite frankly, I haven't got a clue!

Can anyone help?

Thanks :-)
 
Old 01-05-2007, 06:39 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Only superuser (root) is able to "renice" other people's processes.
You could use "sudo" and set the /etc/sudoers file up so that all people in the "admin" group are able
to run "renice" as root.
Downsides:
A. the 'admin' group now can also renice processes of users outside the 'admin' group;
B. each time the group changes (ie users added/deleted), /etc/sudoers will have to be adjusted accordingly,
which is quite inconvenient.

If you want to overcome these options, I think you'll have to write a script that is:
1. given setUID permission;
2. owned by root:admin
3. execute permission only for group admin and user root (owner)
4. placed in a safe directory where only "admin" users have access
5. checks if the processes that are to be renice'd indeed belong to any of the users in the 'admin' group.
The fifth point will be the tricky part, but isn't needed if only want to overcome problem B (above), without solving A.
 
  


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
group: add complete group into other group max_mad Suse/Novell 1 04-12-2006 02:43 AM
closing a group of processes? minm Linux - Newbie 2 04-10-2005 04:26 PM
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 05:25 AM
All processes nice for certain users dxdad Linux - General 2 10-30-2004 06:58 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 05:01 PM


All times are GMT -5. The time now is 12:14 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