suid script
From: bass A (hotletter_at_spammail.com)
Date: 11/26/03
- Next message: Gilles Auric: "Re: Recursive grep alias in csh"
- Previous message: Roger Nilsson: "Recursive grep alias in csh"
- Next in thread: Ed Morton: "Re: suid script"
- Reply: Ed Morton: "Re: suid script"
- Reply: P Bassarabbas: "Re: suid script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 26 Nov 2003 13:48:39 +0100
Hi all! Hope you can help a newbie with this problem
I have a script 'kill.sh', which is supposed to let a user kill "all
processes" on a machine. And yes, this is just for testing, and not an
actual production script :-,
This is the syntax:
# cat kill.sh
#!/bin/sh
read input
kill $input
exit 0;
#
And this is the bits:
#ls -la
-rwsr-Sr-t 1 root root 1749 Nov 26 13:10 kill.sh
#
However, when executing this script other than as root, I get an "Operation
not permitted". Works fine as root.
This is on Linux/Red Hat, but the revised script is supposed to work on
Solaris.
Hope you can help!
-Regrds, Bassarabbas
- Next message: Gilles Auric: "Re: Recursive grep alias in csh"
- Previous message: Roger Nilsson: "Recursive grep alias in csh"
- Next in thread: Ed Morton: "Re: suid script"
- Reply: Ed Morton: "Re: suid script"
- Reply: P Bassarabbas: "Re: suid script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|