[PLUG] Allow Users to Kill Process
Mark Turner
mturner at bendbulletin.com
Wed Jan 23 23:59:52 UTC 2008
Charlie Schluting wrote:
> On 1/23/08 2:48 PM, Mark Turner wrote:
>
>> I am stumped with this one...
>> I would like to have a group of users that can kill processes on a linux
>> server without using sudo. I would like them to be able to just run
>> 'kill <processes ID>' and have it work for any processes.
>>
>> This does not sound secure... I know, trust me but its better than
>> putting everyone in the root group.
>>
>> Any idea how I would accomplish this?
>>
>
> But.. this what sudo is for (it's NOT for 'sudo bash'... i.e. providing
> a root shell with your user password). I would allow all people in said
> group access to run the kill command via sudo.
>
> As other people said - just create setuid a C wrapper that takes the PID
> argument and kills it. Only allow people in the desired group to execute it.
>
>
> -Charlie
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
I would love to use sudo, it is just not an option. We have some vendor
provided sofware that uses a ncurses gui. From the gui as far as I can
tell it tries to kill processes when users try to cancel "jobs". I
cannot change the command used to kill the processes.... hence this
email. It would be wonderful if I could just change it to use sudo
/bin/kill rather then /bin/kill.
-Mark
More information about the PLUG
mailing list