From owner-freebsd-hackers Mon Oct 30 00:23:59 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA11589 for hackers-outgoing; Mon, 30 Oct 1995 00:23:59 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA11584 for ; Mon, 30 Oct 1995 00:23:50 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA18243; Mon, 30 Oct 1995 09:21:29 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id JAA21542; Mon, 30 Oct 1995 09:21:29 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id JAA04857; Mon, 30 Oct 1995 09:20:38 +0100 From: J Wunsch Message-Id: <199510300820.JAA04857@uriah.heep.sax.de> Subject: Re: Why cant a setuid process do a shutdown? To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Mon, 30 Oct 1995 09:20:38 +0100 (MET) Cc: freebsd-hackers@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510292245.RAA05648@crh.cl.msu.edu> from "Charles Henrich" at Oct 29, 95 05:45:54 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 402 Sender: owner-hackers@freebsd.org Precedence: bulk As Charles Henrich wrote: > > Okay, I've tried everything, and I cant figure out anyway in which a setuid > process can execute a shutdown. It works for me. /sbin/shutdown on my notebook is mode 4750, so i can execute it as normal user. -- 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. ;-)