Re: suid script
From: Andreas Kahari (ak+usenet_at_freeshell.org)
Date: 11/26/03
- Next message: those who know me have no need of my name: "Re: suid script"
- Previous message: Tapani Tarvainen: "Re: More fun with SED"
- In reply to: bass A: "Re: suid script"
- Next in thread: those who know me have no need of my name: "Re: suid script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Nov 2003 15:51:39 +0000 (UTC)
In article <HA3xb.1279$n31.22195@news2.e.nsc.no>, bass A wrote:
> "Ed Morton" <mortonAVOIDINGSPAM@lucent.com> wrote in message
> news:bq2fk3$t3a@netnews.proxy.lucent.com...
>> bass A wrote:
[cut]
>> > # cat kill.sh
>> > #!/bin/sh
>> > read input
>> > kill $input
>> > exit 0;
>> That doesn't kill "all" processes, it kills "a" process. What would be
>> the point of this script though - you'd now have to type "kill.sh pid"
>> instead of "kill pid"?
> Well, on my system there's one user who i would like to give permission to
> kill som processes. In order to do that, I make a script, owned by root, and
> with suid bits on, which can be executed by the user to gain "extra"
> privileges.
sudo was developed exactly for this purpose, to give one or
several users permission to use one or several commands as
another user, e.g. to use kill as root.
The user would simply do "sudo kill 2378".
Sudo is here:
http://www.courtesan.com/sudo/
-- Andreas Kähäri
- Next message: those who know me have no need of my name: "Re: suid script"
- Previous message: Tapani Tarvainen: "Re: More fun with SED"
- In reply to: bass A: "Re: suid script"
- Next in thread: those who know me have no need of my name: "Re: suid script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|