From owner-freebsd-questions Sat Dec 5 10:12:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27675 for freebsd-questions-outgoing; Sat, 5 Dec 1998 10:12:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27655 for ; Sat, 5 Dec 1998 10:12:30 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.054 #11) id 0zmLpb-0009je-00; Sat, 5 Dec 1998 17:49:23 +0000 Date: Sat, 5 Dec 1998 17:49:23 +0000 From: Ben Smithurst To: Evren Yurtesen Cc: questions@FreeBSD.ORG Subject: Re: how to kill root processes? Message-ID: <19981205174923.B37396@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.17i (FreeBSD/3.0-CURRENT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Evren Yurtesen wrote: > I tried to make a script for it and I gave set-user-ID-on-execution > bit with chmod but it did not work...(file was owned by root) You can't make sh scripts suid, because /bin/sh is not suid (at least I think that's the reason). Make a small wrapper in C which then execs the script, or just write the whole thing in C. -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message