From owner-freebsd-questions Tue Jul 22 00:08:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA11539 for questions-outgoing; Tue, 22 Jul 1997 00:08:24 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA11526 for ; Tue, 22 Jul 1997 00:08:12 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id KAA05340; Tue, 22 Jul 1997 10:09:08 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma005334; Tue Jul 22 10:08:37 1997 Message-ID: <33D45C01.1F76@barcode.co.il> Date: Tue, 22 Jul 1997 10:06:41 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Tim Stoddard CC: freebsd-questions@FreeBSD.ORG Subject: Re: suid question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Tim Stoddard wrote: > > I have a need to allow someone the ability to reload a daemon. I have > tried to write a script with the suid id bit set and owner set to root, > but the script is always executed with the uid of the person who executed > it instead of root. I am at a loss as to what else would need to be set. > > Thanks in advance, > Tim Stoddard Normally, shell scripts can't be setuid. However, take a look at sudo (it's in the ports) it might do just what you need. Nadav