From owner-freebsd-ports Mon Aug 4 12:21:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA21553 for ports-outgoing; Mon, 4 Aug 1997 12:21:49 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id MAA21548 for ; Mon, 4 Aug 1997 12:21:45 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA17513; Mon, 4 Aug 1997 21:21:39 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id UAA11196; Mon, 4 Aug 1997 20:53:38 +0200 (MET DST) Message-ID: <19970804205337.OT56334@uriah.heep.sax.de> Date: Mon, 4 Aug 1997 20:53:37 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: ports@FreeBSD.ORG Cc: jonz@netrail.net (Jonathan A. Zdziarski) Subject: Re: SetUID References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jonathan A. Zdziarski wrote: > I recently, in an attempt to make my FreeBSD a litle more system Vish > like I'm used to, create a set of /sbin/init.d scripts to start and stop > services, and wired this and rc3.d into /etc/rc. Well, we already have this kind of service, sorta. It's stored in /usr/local/etc/rc.d, and /usr/X11R6/etc/rc.d. > I took it a step further, and made the noc-executable, and noc-setuid root > so that anybody in the noc could restart them without having to be in sudo > for it. For some odd reason (and this may just be a FreeBSD thing that > I'm not used to), I get the error that the script doesn't have permission > to kill the current running process Scripts (more accurately: `interpreter files') cannot be setuid. This is not very FreeBSDish, only very few systems allow you to do this. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)