From owner-freebsd-questions@FreeBSD.ORG Thu Oct 5 11:23:01 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D1D516A416 for ; Thu, 5 Oct 2006 11:23:01 +0000 (UTC) (envelope-from nick@nickwithers.com) Received: from mail.nickwithers.com (mail.manrags.com [203.219.206.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69D5743D5C for ; Thu, 5 Oct 2006 11:23:00 +0000 (GMT) (envelope-from nick@nickwithers.com) Received: from localhost (shmick.shmon.net [10.0.0.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.nickwithers.com (Postfix) with ESMTP id 3525D3C473; Thu, 5 Oct 2006 21:23:40 +1000 (EST) Date: Thu, 5 Oct 2006 21:22:39 +1000 From: Nick Withers To: thomas@hindsight.de Message-Id: <20061005212239.b79a9498.nick@nickwithers.com> In-Reply-To: <200610051324.14456.thomas@hindsight.de> References: <200610051324.14456.thomas@hindsight.de> Organization: nickwithers.com X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.4; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-nickwithers-MailScanner: Found to be clean X-nickwithers-MailScanner-From: nick@nickwithers.com Cc: Free BSD Questions list Subject: Re: Member of group wheel, but still can't shutdown system? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2006 11:23:01 -0000 On Thu, 5 Oct 2006 13:24:14 +0200 thomas@hindsight.de wrote: > Hi All, > > I've just installed FreeBSD 6.1 and listed myself as a member of the wheel > group during the add users portion of the installation. For some reason I > have not put a finger on yet I cannot shutdown the system "do not have > permission" to effect the command. The shutdown(8) binary ("/sbin/shutdown") is not owned by the "wheel" group (do an "ls -l" on it), but by the "operator" group. > Went back as root on a later session and > re-entered my name in /etc/group to the wheel account to no avail, anybody > got an idea as to where I need to look? I personally set the execute bit on "/sbin/shutdown" for others on my desktop machine, as I want anyone using it (locally, no remote access enabled) to be able to shut it down. To do this: "chmod o+x /sbin/shutdown". Might be a good idea to understand the setuid concept beforehand, if you don't already... > Thanks, > Tommy2 -- Nick Withers email: nick@nickwithers.com Web: http://www.nickwithers.com Mobile: +61 414 397 446