From owner-freebsd-questions Thu Mar 20 19:32:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA21818 for questions-outgoing; Thu, 20 Mar 1997 19:32:42 -0800 (PST) Received: from obiwan.aceonline.com.au (obiwan.aceonline.com.au [203.103.90.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA21806 for ; Thu, 20 Mar 1997 19:32:35 -0800 (PST) Received: from localhost (adrian@localhost) by obiwan.aceonline.com.au (8.8.5/8.8.5) with SMTP id LAA03703; Fri, 21 Mar 1997 11:30:09 +0800 (WST) Date: Fri, 21 Mar 1997 11:30:09 +0800 (WST) From: Adrian Chadd To: "K. Marsh" cc: questions@freebsd.com Subject: Re: chmod, chown, and shutdown. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 20 Mar 1997, K. Marsh wrote: > My roomate uses my computer to check his e-mail and do a little web > browsing in FreeBSD, as well as to use Word, Excel, and other expensive > programs in that other operating system. > Poor thing, I feel sorry for them :) > How can I give him the ability to issue "shutdown" without giving him root > privileges? > > I am aware that it may be a security hole, but he's not going to hack my > system. I just don't want him to able to destroy everything by accident. > Ctrl-Alt-Del on the FreebSD console will work fine (the same key combo as in DOS :) > I tried using chmod and chown on the binary, but even when he owns it and > it's in 777 mode, it doesn't execute. > It needs to b run as root (either by root, or setuid root) for shutdown to work.. the default (on my system, 2.2-GAMMA) is chown root.operator, and chmod 4750 (so root can run it, and people in the operator group can run it setuid to root, but noone else). > I'm using 2.2-RELEASE if it makes any difference. > > Thanks, Ken Marsh > > Cya.. Adrian Chadd