From owner-freebsd-questions Tue May 30 7:46: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id A6F1937BB00 for ; Tue, 30 May 2000 07:45:54 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id KAA63203; Tue, 30 May 2000 10:52:08 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <3933D409.A3171591@wmptl.com> Date: Tue, 30 May 2000 10:45:30 -0400 From: Nathan Vidican Reply-To: webmaster@wmptl.com X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Nils Holland Cc: questions@freebsd.org Subject: Re: Letting normal users halt the system References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nils Holland wrote: > > Well, I wonder about the following thing: > > Normally, only root can halt and reboot a machine using commands like > shutdown, halt and reboot. This is surely clever. But what can be done if > I explictly want normal users be able to reboot/halt the system? One > possibility that comes to my mind is to compile the kernel so that > CTRL+ALT+DEL is interpreted as system-reboot ( I generally > disable this, but if it's turned on, users could press these keys and > after the system is halted and the reboot-process starts they could turn > it of). Now I'm wondering if there's some place in which I can set the > system up so that also the halt, reboot and shutdown commands work for > normal users. While this surely shouldn't be done on a server in which > many people log in ( that shouldn't be rebootable / haltable by > everyone), it would be good if it worked on one of my computers which is > normally being turned on and off by users as needed. > > See ya, > Nils > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Place the user(s) you want to be able to halt/shutdown the system into the 'operator' group; this will allow them tu run 'shutdown -h now' to halt, and 'shutdown -r now' to reboot. (This will only work assuming the default chown of root.operator to /sbin/shutdown). You don't need to use sudo, or anything like that. -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message