public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFD] 'nice' attribute for executable files
@ 2005-03-29 19:55 Wiktor
  2005-03-29 21:02 ` Lee Revell
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Wiktor @ 2005-03-29 19:55 UTC (permalink / raw)
  To: linux-kernel

Hi all,

recently i had to run some program (xmms) with lowered nice value as 
normal user. to do that i had to su to the root account and then execute 
nice --5 xmms. but, then xmms was run as root and X server refused 
connection, so i had to do second su from root account. (total: su nice 
--5 su wixor xmms). what's more, i thought that entering root password 
each time i want to run something with lowered nice is rather boring. 
furthermore, on many systems root may want to make users able to run 
some program with lowered nice, but not from root account and without 
having to know the root password... i've found a way to do this using 
shell scripts combined with suid bit and strange fils ownerships, but it 
is absolute diseaster.

so i thought that it would be nice to add an attribute to file 
(changable only for root) that would modify nice value of process when 
it starts. if there is one byte free in ext2/3 file metadata, maybe it 
could be used for that? i think that it woundn't be more dangerous than 
setuid bit.

Does it all make any sense?
thanks for responses

--
wixor
May the Source be with you

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2005-04-01 17:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.ed33rit.1e148rh@ifi.uio.no>
2005-03-29 20:45 ` [RFD] 'nice' attribute for executable files Bodo Eggert
2005-03-30 16:07   ` Wiktor
2005-03-30 16:55     ` Måns Rullgård
2005-03-30 17:27       ` Wiktor
2005-03-30 19:03         ` Måns Rullgård
2005-03-30 20:16           ` Wiktor
2005-03-30 20:43             ` Måns Rullgård
2005-04-01 15:26               ` Wiktor
2005-04-01 16:07                 ` Måns Rullgård
2005-03-31  5:46             ` Jan Engelhardt
2005-03-31 15:56       ` Horst von Brand
2005-03-31 16:05         ` Måns Rullgård
2005-04-01 15:40         ` Wiktor
2005-04-01 16:12           ` Måns Rullgård
2005-04-01 17:27           ` Horst von Brand
2005-03-30 19:40     ` Bodo Eggert
2005-03-30 21:03     ` Lee Revell
2005-03-29 19:55 Wiktor
2005-03-29 21:02 ` Lee Revell
2005-03-30 19:55 ` Bill Davidsen
2005-03-31  5:51 ` Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox